/* Shared styles for the keyword landing pages. Tokens, type, buttons, top bar, form and footer match index.html. */
:root {
  --navy: #1E2A44;
  --blue: #306BCF;
  --blue-dark: #2457AD;
  --sky: #DCE7F8;
  --beige: #F4EDE3;
  --sand: #E3D3BD;
  --coffee: #7A5A43;
  --text: #2E3A52;
  --white: #FFFFFF;
  --radius: 14px;
  --max: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-intro { max-width: 640px; margin-bottom: 32px; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.caption { font-size: .85rem; color: var(--coffee); }
.alt { background: var(--beige); }
.alt .eyebrow { color: var(--blue-dark); }

/* Skip link and screen-reader text */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: var(--white); border: 0;
  font: 600 1rem "Space Grotesk", sans-serif; padding: 14px 22px; border-radius: 10px;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--sky); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--sand); background: var(--white); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.1rem; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }

/* Hero with the direct answer */
.lp-hero { padding: 48px 0 64px; }
.crumbs { font-size: .9rem; color: var(--coffee); margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--sand); }
.crumbs a { color: var(--coffee); }
.lp-hero h1 { max-width: 880px; }
.answer {
  max-width: 820px; background: var(--sky); border-radius: var(--radius); padding: 28px 32px;
  border-left: 5px solid var(--blue); margin-top: 28px;
}
.answer-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 8px; }
.answer p:last-child { margin: 0; color: var(--navy); font-size: 1.08rem; }
.updated { font-size: .85rem; color: var(--coffee); margin: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero-grid .answer { margin-top: 20px; }

/* Body */
.lp-body { padding: 0 0 72px; }
.prose { max-width: 820px; }
.prose section { padding: 48px 0 0; }
.prose section:first-child { padding-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose li strong { color: var(--navy); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--sand); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; font-size: .85rem; color: var(--coffee); padding: 14px 18px 0; }
th, td { text-align: left; vertical-align: top; padding: 12px 18px; border-bottom: 1px solid var(--sand); }
thead th { font-family: "Outfit", sans-serif; font-weight: 600; color: var(--navy); background: var(--beige); }
tbody th { font-weight: 600; color: var(--navy); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.sev { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.sev-critical { background: #FBE3E1; color: #9A2A1F; }
.sev-high { background: var(--beige); color: var(--coffee); }
.sev-medium { background: var(--sky); color: var(--blue-dark); }
.sev-low { background: #EEF1F5; color: var(--text); }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; color: var(--coffee);
  background: var(--beige); border: 1px dashed var(--coffee); border-radius: 6px;
  padding: 3px 8px; margin-bottom: 10px;
}

/* Numbered steps */
.lp-steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 14px; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; margin: 0 !important; }
.lp-steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-family: "Outfit", sans-serif; font-weight: 600; font-size: .95rem;
}
.lp-steps li > span { padding-top: 5px; }

/* Tick list */
.ticks { list-style: none; padding: 0 !important; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23306BCF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.callout { background: var(--beige); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0 0; }
.callout p:last-child { margin: 0; }
.src { font-size: .85rem; color: var(--coffee); }

/* FAQ */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--sand); padding: 20px 0; }
summary { cursor: pointer; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related a { display: block; background: var(--sky); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: background .15s; }
.related a:hover, .related a:focus-visible { background: #CCDCF4; }
.related h3 { font-size: 1.08rem; margin-bottom: 8px; }
.related p { font-size: .92rem; margin: 0 0 12px; }
.related .more { font-weight: 600; color: var(--blue); font-size: .92rem; }

/* Form and closing card */
.audit-card { background: var(--sky); border-radius: var(--radius); padding: 32px; }
.audit-card h2, .audit-card h3 { margin-bottom: 6px; }
.audit-card form { display: grid; gap: 14px; margin-top: 18px; }
label { font-size: .9rem; font-weight: 600; color: var(--navy); display: grid; gap: 6px; }
input {
  font: 400 1rem "Space Grotesk", sans-serif; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--sand); background: var(--white); color: var(--navy); width: 100%;
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-note { font-size: .85rem; color: var(--coffee); margin: 4px 0 0; }
.form-done { display: none; font-weight: 600; color: var(--navy); margin: 0; }
.form-error { display: none; font-weight: 600; color: #b42318; margin: 0; }
button:disabled { opacity: .6; cursor: wait; }
.closing .audit-card { max-width: 720px; margin: 0 auto; text-align: center; }
.closing .audit-card p { max-width: 560px; margin: 0 auto 22px; }

/* Footer */
footer { border-top: 1px solid var(--sand); padding: 32px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1000px) {
    .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .logo span { display: none; }
  .answer { padding: 22px; }
  .audit-card { padding: 24px; }
  .related { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; }
}
