/* LeftOut Security — AI necessity pillar and anti-funnel */
body[data-necessity-view] [hidden] { display: none !important; }

.necessityHero .heroGrid { align-items: center; }
.necessityHero .h1 { max-width: 9ch; }
.necessityBrandHero,
.necessityBrandHero img { min-height: 590px; }
.necessityBrandHero img { object-position: 56% center; }

.necessityIntro,
.checkIntro { align-items: end; }

.frameworkGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.frameworkCard { min-height: 270px; padding: 26px; }
.frameworkCard .number { display: block; margin-bottom: 62px; font-size: 0.7rem; }
.frameworkCard h3 { margin-bottom: 10px; font-size: 1.1rem; }
.frameworkCard p { margin: 0; font-size: 0.9rem; }

.doctrineQuote {
  max-width: 980px;
  margin: 54px 0 0;
  padding: 8px 0 8px 30px;
  color: var(--text);
  border-left: 4px solid var(--lime);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: uppercase;
}

.ordinarySection {
  background:
    linear-gradient(90deg, rgba(192, 57, 43, 0.07), transparent 48%),
    #0e0e10;
}
.ordinaryGrid { align-items: center; gap: clamp(42px, 8vw, 100px); }
.alternativeStack { display: flex; flex-wrap: wrap; gap: 10px; }
.alternativeStack span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #d1d1d4;
  background: rgba(242, 242, 243, 0.035);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}
.alternativeStack span:nth-child(3n + 1) { border-left: 2px solid var(--lime); }

.valueMatrix { margin-top: 38px; }
.valueMatrix .riskcell { min-height: 210px; }
.valueMatrix .riskcell span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.87rem; line-height: 1.55; }

.minimumSection { overflow: hidden; background: #0e0e10; }
.minimumMap {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  margin-top: 42px;
}
.minimumCore {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(145deg, rgba(192, 57, 43, 0.25), rgba(18, 18, 20, 0.94));
  border: 1px solid rgba(192, 57, 43, 0.58);
  border-radius: var(--radius);
}
.minimumCore span,
.minimumCore strong,
.minimumCore small { display: block; }
.minimumCore span { color: #ef665a; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.minimumCore strong { margin-top: 12px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; text-transform: uppercase; }
.minimumCore small { max-width: 36ch; margin-top: 16px; color: var(--muted); font-size: 0.85rem; }
.minimumCuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.minimumCuts span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 17px 20px;
  color: #aaaab0;
  background: rgba(18, 18, 20, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.minimumCuts span::before { content: "−"; margin-right: 12px; color: var(--lime); font-size: 1.2rem; }

.portSection { background: var(--lime); border-top: 0; }
.portGrid { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: clamp(48px, 8vw, 110px); align-items: center; }
.portSection .kicker,
.portSection h2,
.portSection .lead,
.portSection .sub { color: #fff; }
.portStatement {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  color: #fff;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 18px 18px 0 rgba(75, 13, 9, 0.34);
}
.portStatement span { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; }
.portStatement strong { color: #fff; font-family: var(--display); font-size: clamp(3.8rem, 9vw, 7rem); letter-spacing: -0.03em; line-height: 0.9; }

.checkSection { background: #09090a; }
.necessityTool {
  max-width: 960px;
  margin: 44px auto 0;
}
.toolIntro,
.toolResult {
  padding: clamp(30px, 6vw, 62px);
  background: linear-gradient(145deg, rgba(28, 28, 31, 0.98), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(242, 242, 243, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.34);
}
.toolIntro h3,
.toolResult h3 {
  max-width: 18ch;
  margin: 24px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  letter-spacing: -0.026em;
  line-height: 0.98;
  text-transform: uppercase;
}
.toolIntro p { max-width: 62ch; color: var(--muted); }
.toolIntro .btn { margin-top: 16px; }
.toolScreen .screenToolbar { top: 90px; }
.necessityChoices .choiceBody { min-height: 92px; }
.necessityChoices .choiceBody strong { font-size: 0.92rem; }

.toolResult { position: relative; overflow: hidden; border-top: 4px solid var(--lime); }
.toolResult::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  top: -180px;
  right: -130px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.23), transparent 68%);
}
.toolResult.outcome-no-ai { border-top-color: #d6d6d8; }
.toolResult.outcome-process-first { border-top-color: var(--amber); }
.toolResult.outcome-smaller-ai { border-top-color: #df5145; }
.toolResult.outcome-ai-justified { border-top-color: var(--lime); }
.resultHeader { position: relative; z-index: 1; }
.resultHeader .resultLead { max-width: 66ch; color: #c9c9cd; font-size: 1.08rem; }
.resultReasoning {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 12px;
  margin-top: 30px;
}
.resultReasoning > div {
  padding: 24px;
  background: rgba(8, 8, 9, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.resultReasoning ul { margin: 14px 0 0; padding-left: 19px; }
.resultReasoning li { margin: 10px 0; color: var(--muted); font-size: 0.9rem; }
.resultAction p { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.resultCta { margin-top: 14px; }
.resultCta:empty { display: none; }
.resultCta .resultCtaPanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 10px;
}
.resultCtaPanel p { max-width: 55ch; margin: 0; color: #cacace; font-size: 0.86rem; }
.resultCtaPanel .btn { flex: 0 0 auto; }
.resultControls { justify-content: flex-start; margin-top: 26px; }

.fieldNotesSection { background: #0e0e10; }
.fieldNoteGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.fieldNote {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}
.fieldNote:hover { color: var(--text); border-color: rgba(192, 57, 43, 0.55); transform: translateY(-3px); }
.fieldNote .number { display: block; margin-bottom: auto; font-size: 0.66rem; }
.fieldNote h3 { margin: 50px 0 12px; font-family: var(--display); font-size: 1.75rem; line-height: 1.06; text-transform: uppercase; }
.fieldNote p { margin-bottom: 24px; font-size: 0.88rem; }
.fieldNote strong { margin-top: auto; color: #e45a4e; font-size: 0.78rem; text-transform: uppercase; }

.faqSectionPage { background: #0b0b0d; }
.doctrineClose { padding-block: 120px; text-align: center; background: #080809; }
.doctrineClose p {
  margin: 0 auto;
  color: #9f9fa5;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
}
.doctrineClose strong { color: #df5145; }

/* Shared editorial treatment for the three necessity field notes. */
.necessityArticleHero { padding-bottom: 70px; }
.necessityArticleHero .h1 { max-width: 12ch; }
.articleDeck { max-width: 800px; }
.articleMeta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--faint); font-size: 0.78rem; }
.articleBody { max-width: 820px; margin: 0 auto; }
.articleBody h2 { margin: 68px 0 18px; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.articleBody h3 { margin: 38px 0 12px; font-size: 1.25rem; }
.articleBody p,
.articleBody li { color: #c1c1c6; }
.articleBody blockquote { margin: 42px 0; padding: 22px 26px; color: var(--text); background: rgba(192, 57, 43, 0.08); border-left: 3px solid var(--lime); }
.articleVerdict { margin-top: 64px; padding: clamp(28px, 6vw, 54px); background: linear-gradient(145deg, rgba(192, 57, 43, 0.2), rgba(18, 18, 20, 0.96)); border: 1px solid rgba(192, 57, 43, 0.5); border-radius: var(--radius); }
.articleVerdict h2 { margin-top: 0; }
.articleReturn { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .frameworkGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minimumMap,
  .portGrid { grid-template-columns: 1fr; }
  .portStatement { max-width: 560px; }
  .fieldNoteGrid { grid-template-columns: 1fr; }
  .fieldNote { min-height: 250px; }
}

@media (max-width: 760px) {
  .necessityBrandHero,
  .necessityBrandHero img { min-height: 430px; }
  .frameworkGrid,
  .minimumCuts,
  .resultReasoning { grid-template-columns: 1fr; }
  .frameworkCard { min-height: 220px; }
  .frameworkCard .number { margin-bottom: 42px; }
  .portStatement { min-height: 220px; box-shadow: 10px 10px 0 rgba(75, 13, 9, 0.34); }
  .resultCta .resultCtaPanel { align-items: flex-start; flex-direction: column; }
  .resultCtaPanel .btn { width: 100%; }
  .toolScreen .screenToolbar { top: 78px; }
}

@media (max-width: 480px) {
  .alternativeStack span { width: 100%; }
  .toolIntro,
  .toolResult { padding: 24px; }
  .portStatement strong { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fieldNote { transition: none; }
}
