/*
Theme Name: WebRankerSEO
Theme URI: https://webrankerseo.com
Author: WebRankerSEO
Description: Custom agency-only white-label SEO fulfillment theme.
Version: 1.3.1
Text Domain: webrankerseo
*/

:root {
  --night: #071126;
  --night-2: #0b1832;
  --night-3: #102143;
  --ink: #111b32;
  --muted: #5f6d86;
  --line: #dfe5ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --violet: #705cf6;
  --violet-dark: #5844d6;
  --aqua: #2ed3d0;
  --lime: #b8f45a;
  --warning: #ffcf66;
  --shadow: 0 24px 70px rgba(7, 17, 38, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
  border-radius: 6px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.018em; }
p { margin-bottom: 1.15rem; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; background: #fff; color: #000; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--aqua); }
.section { padding: 100px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--night); color: #dbe5f6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.compact-section { padding-top: 0; padding-bottom: 88px; }
.section-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin: 13px 0 16px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-heading p { color: #aab8d0; }

.signal-bar { background: linear-gradient(90deg, var(--violet), #5a7afa 52%, var(--aqua)); color: #fff; font-size: 0.79rem; font-weight: 700; }
.signal-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.signal-inner a { border-left: 1px solid rgba(255,255,255,.45); padding-left: 28px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(223,229,239,.85);
  backdrop-filter: blur(15px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; }
.brand-name { display: grid; grid-template-columns: auto auto; align-items: baseline; color: var(--night); font-size: 1.06rem; line-height: 1; letter-spacing: -0.02em; }
.brand-name b { font-weight: 850; }
.brand-name em { color: var(--violet); font-style: normal; font-weight: 850; }
.brand-name small { grid-column: 1 / -1; margin-top: 5px; color: #596780; font-size: 0.48rem; letter-spacing: .18em; }
.brand.on-dark .brand-name { color: #fff; }
.brand.on-dark .brand-name em { color: var(--aqua); }
.brand.on-dark .brand-name small { color: #899ab9; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.menu { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; }
.menu a { color: #41506b; font-size: .88rem; font-weight: 700; }
.menu a:hover, .menu .current-menu-item > a { color: var(--violet-dark); }
.agency-login-link { display: inline-flex; align-items: center; gap: 7px; color: var(--violet-dark); font-size: .8rem; font-weight: 850; white-space: nowrap; }
.agency-login-link::before { content: ""; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 0 0 3px #ece9ff; }
.agency-login-link:hover { color: var(--night); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--night); transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--violet), #536ff3); box-shadow: 0 13px 30px rgba(112,92,246,.27); }
.button.secondary { color: var(--night); background: #fff; border-color: #cad3e1; }
.button.light { color: var(--night); background: #fff; }
.button.small { min-height: 43px; padding: 0 18px; font-size: .82rem; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(46,211,208,.18), transparent 25%),
    radial-gradient(circle at 28% 25%, rgba(112,92,246,.22), transparent 30%),
    var(--night);
  color: #dce6f7;
  padding: 96px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 65px; align-items: center; }
.hero h1 { max-width: 760px; margin: 17px 0 22px; color: #fff; }
.hero h1 span { color: var(--aqua); }
.hero-copy > p { max-width: 675px; color: #b9c6da; font-size: 1.16rem; }
.hero-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 680px; margin: 25px 0 0; padding: 0; list-style: none; }
.hero-scope li { position: relative; padding: 10px 13px 10px 38px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; color: #e8eef8; background: rgba(255,255,255,.045); font-size: .86rem; font-weight: 750; }
.hero-scope li::before { content: "✓"; position: absolute; left: 13px; top: 9px; color: var(--aqua); font-weight: 900; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; color: #aebbd0; font-size: .82rem; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--night); background: var(--aqua); font-size: .7rem; }
.dashboard-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(21,41,80,.96), rgba(10,25,53,.93));
  box-shadow: 0 35px 100px rgba(0,0,0,.38);
}
.dashboard-card::after { content: ""; position: absolute; right: -16px; bottom: 45px; width: 90px; height: 90px; border-radius: 50%; background: rgba(46,211,208,.11); filter: blur(2px); }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; color: #9fb0ca; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--aqua); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(46,211,208,.12); }
.rank-panel { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.055); }
.rank-panel .label { color: #8fa1bd; font-size: .75rem; }
.rank-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 8px 0 18px; }
.rank-score strong { color: #fff; font-size: 2.9rem; letter-spacing: -.06em; line-height: 1; }
.rank-score small { color: var(--aqua); font-weight: 800; }
.chart { height: 92px; display: flex; align-items: end; gap: 7px; }
.chart span { flex: 1; min-height: 12%; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--violet), var(--aqua)); opacity: .92; }
.chart span:nth-child(1) { height: 24%; }
.chart span:nth-child(2) { height: 31%; }
.chart span:nth-child(3) { height: 28%; }
.chart span:nth-child(4) { height: 43%; }
.chart span:nth-child(5) { height: 49%; }
.chart span:nth-child(6) { height: 61%; }
.chart span:nth-child(7) { height: 67%; }
.chart span:nth-child(8) { height: 79%; }
.chart span:nth-child(9) { height: 88%; }
.dash-list { display: grid; gap: 10px; margin-top: 14px; }
.dash-list div { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.045); color: #b9c6da; font-size: .78rem; }
.dash-list b { color: #fff; }

.trust-strip { margin-top: -1px; color: #fff; background: var(--night-2); border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.08); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.trust-grid span { color: #91a2be; font-size: .77rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split h2 { margin: 14px 0 18px; }
.split p { color: var(--muted); font-size: 1.06rem; }
.point-list { display: grid; gap: 13px; margin-top: 24px; }
.point-list div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.point-list i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--violet-dark); background: #ece9ff; font-style: normal; font-weight: 900; }
.point-list b { display: block; margin: 2px 0 2px; }
.point-list span { color: var(--muted); font-size: .9rem; }
.quote-block { padding: 38px; border-radius: 24px; color: #d9e4f6; background: var(--night); box-shadow: var(--shadow); }
.quote-block strong { display: block; margin-bottom: 16px; color: var(--aqua); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.quote-block p { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 750; line-height: 1.25; letter-spacing: -.025em; }

.agency-engine { position: relative; overflow: hidden; padding: 29px; border: 1px solid #d8dff0; border-radius: 26px; background: linear-gradient(155deg, #ffffff, #f0f5ff); box-shadow: var(--shadow); }
.agency-engine::before { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; top: -105px; border-radius: 50%; background: radial-gradient(circle, rgba(46,211,208,.22), rgba(46,211,208,0) 70%); }
.engine-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.engine-head span { color: var(--night); font-weight: 900; }
.engine-head b { padding: 6px 10px; border-radius: 999px; color: #087b78; background: #d9f8f5; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.engine-core { position: relative; display: grid; place-items: center; min-height: 175px; margin: 19px 0; border-radius: 20px; color: #fff; text-align: center; background: radial-gradient(circle at 70% 20%, rgba(46,211,208,.26), transparent 35%), linear-gradient(145deg, var(--night-3), var(--night)); }
.engine-core::after { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; }
.engine-core small, .engine-core strong, .engine-core span { position: relative; z-index: 1; }
.engine-core small { color: var(--aqua); font-size: .69rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.engine-core strong { margin: 5px 0; font-size: clamp(1.4rem, 3vw, 2.05rem); letter-spacing: -.03em; }
.engine-core span { color: #aebdd4; font-size: .78rem; }
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.engine-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.engine-grid b, .engine-grid span { display: block; }
.engine-grid b { color: var(--ink); font-size: .84rem; }
.engine-grid span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.agency-engine > p { margin: 18px 3px 0; color: var(--violet-dark); font-size: .86rem; font-weight: 850; text-align: center; }

.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.outcome-grid article { position: relative; min-height: 215px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.outcome-grid article::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; bottom: -45px; border-radius: 50%; background: rgba(112,92,246,.07); }
.outcome-grid article > span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 30px; border-radius: 11px; color: var(--violet-dark); background: #ece9ff; font-size: .76rem; font-weight: 900; }
.outcome-grid article:nth-child(2n) > span { color: #087b78; background: #ddfafa; }
.outcome-grid h3 { margin-bottom: 9px; }
.outcome-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #bdb4ff; box-shadow: 0 19px 45px rgba(7,17,38,.08); }
.service-card .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 40px; border-radius: 13px; color: var(--violet-dark); background: #ece9ff; font-size: 1.2rem; font-weight: 900; }
.service-card:nth-child(2n) .icon { color: #087d7b; background: #ddfafa; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.fit-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; margin-top: 26px; padding: 36px 40px; border-radius: 22px; color: #c5d1e3; background: radial-gradient(circle at 15% 25%, rgba(112,92,246,.3), transparent 35%), var(--night); }
.fit-band h3 { margin: 10px 0 0; color: #fff; font-size: clamp(1.45rem, 2.5vw, 2.05rem); }
.fit-band p { margin: 0; color: #afbdd2; font-size: .94rem; }

.pricing-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: var(--night-2); box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.price-side { padding: 48px; background: linear-gradient(145deg, #705cf6, #526cf0); color: #fff; }
.price-side .eyebrow { color: #d7d2ff; }
.price-side h2 { margin: 17px 0 10px; color: #fff; }
.price { margin: 30px 0 20px; }
.price strong { font-size: clamp(3.7rem, 7vw, 5.7rem); line-height: .92; letter-spacing: -.07em; }
.price span { display: block; margin-top: 10px; color: #e2dfff; font-size: .86rem; }
.price-side p { color: #ece9ff; }
.includes-side { padding: 48px; }
.includes-side h3 { color: #fff; margin-bottom: 22px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin: 0 0 30px; padding: 0; list-style: none; color: #c0cce0; font-size: .89rem; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 900; }
.price-note { padding: 16px 18px; border: 1px solid rgba(46,211,208,.18); border-radius: 13px; color: #aebdd4; background: rgba(46,211,208,.06); font-size: .82rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.process-card { position: relative; padding: 28px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); counter-increment: steps; }
.process-card::before { content: "0" counter(steps); display: block; margin-bottom: 34px; color: var(--violet); font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
.process-card h3 { margin-bottom: 10px; }
.process-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.report-stack { display: grid; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.report-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.report-heading span { color: var(--ink); font-size: .88rem; font-weight: 850; }
.report-heading small { color: var(--muted); font-size: .72rem; text-align: right; }
.report-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 18px 20px; border-radius: 14px; background: var(--soft); border-left: 3px solid rgba(46,211,208,.72); }
.report-item b { display: block; }
.report-item small { display: block; margin-top: 3px; color: var(--muted); }
.status-pill { padding: 6px 10px; border-radius: 999px; color: #087b78; background: #d9f8f5; font-size: .68rem; font-weight: 850; text-transform: uppercase; }

.faq-grid { max-width: 850px; margin-inline: auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
summary { cursor: pointer; position: relative; padding: 21px 56px 21px 22px; color: var(--ink); font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--violet); font-size: 1.5rem; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 50px 54px; border-radius: 27px; color: #c8d4e6; background: radial-gradient(circle at 90% 20%, rgba(46,211,208,.2), transparent 30%), linear-gradient(135deg, var(--night), var(--night-3)); box-shadow: var(--shadow); }
.cta-band h2 { max-width: 700px; margin: 12px 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }

.page-hero { padding: 92px 0 76px; color: #b9c6da; background: radial-gradient(circle at 74% 25%, rgba(46,211,208,.14), transparent 27%), var(--night); text-align: center; }
.page-hero.compact { padding: 80px 0; }
.page-hero h1 { margin: 16px 0 18px; color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.page-content-section { min-height: 480px; }
.prose { color: #33415c; font-size: 1.03rem; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose h3 { margin: 2rem 0 .7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose a:not(.button) { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.prose .feature-box { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.prose .feature-box h3 { margin-top: 0; }
.prose .callout { margin: 32px 0; padding: 26px 28px; border-left: 4px solid var(--aqua); border-radius: 0 14px 14px 0; color: #dbe5f6; background: var(--night); }
.prose .callout h2, .prose .callout h3 { color: #fff; margin-top: 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .price-card { margin: 30px 0; padding: 34px; border: 1px solid #cfc9ff; border-radius: 22px; background: linear-gradient(145deg, #f7f6ff, #ecfbfb); }
.prose .price-card .big-price { color: var(--night); font-size: 3.7rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }

.application-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 36px; align-items: start; }
.application-intro { position: sticky; top: 126px; padding: 30px; border-radius: 20px; color: #cfdaec; background: var(--night); }
.application-intro h2 { color: #fff; }
.application-intro ul { padding-left: 18px; }
.application-form { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #cad3e1; border-radius: 10px; color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(112,92,246,.14); border-color: var(--violet); }
.form-note { color: var(--muted); font-size: .76rem; }
.notice { margin-bottom: 22px; padding: 14px 16px; border-radius: 11px; color: #1f695f; background: #dff8f1; font-weight: 700; }
.notice.error { color: #8b332f; background: #ffebe8; }
.hp-field { position: absolute; left: -9999px; }

.auth-section { min-height: 720px; padding: 82px 0; background: radial-gradient(circle at 15% 20%, rgba(112,92,246,.12), transparent 30%), var(--soft); }
.auth-shell { max-width: 1030px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-aside { position: relative; overflow: hidden; padding: 54px 46px; color: #b9c6da; background: radial-gradient(circle at 82% 18%, rgba(46,211,208,.2), transparent 30%), linear-gradient(145deg, var(--night-3), var(--night)); }
.auth-aside::after { content: ""; position: absolute; right: -90px; bottom: -100px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); }
.auth-aside h1 { position: relative; z-index: 1; margin: 20px 0 22px; color: #fff; font-size: clamp(2.35rem, 5vw, 4rem); }
.auth-aside > p { position: relative; z-index: 1; }
.auth-benefits { position: relative; z-index: 1; display: grid; gap: 14px; margin: 30px 0; padding: 0; list-style: none; }
.auth-benefits li { position: relative; padding-left: 27px; color: #d9e4f4; font-size: .9rem; font-weight: 700; }
.auth-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 900; }
.auth-boundary { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: var(--aqua); font-size: .82rem; font-weight: 800; }
.auth-card { align-self: center; padding: 54px 52px; }
.auth-kicker { color: var(--violet-dark); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h2 { margin: 12px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.auth-card > p { color: var(--muted); }
.auth-form { display: grid; gap: 19px; margin-top: 30px; }
.login-field { display: grid; gap: 8px; }
.login-field label, .field-label-row label { color: var(--ink); font-size: .78rem; font-weight: 850; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.field-label-row a, .text-link { color: var(--violet-dark); font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.login-field input { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #c9d2e0; border-radius: 11px; color: var(--ink); background: #fff; }
.login-field input:focus { outline: 3px solid rgba(112,92,246,.14); border-color: var(--violet); }
.remember-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; cursor: pointer; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--violet); }
.auth-submit { width: 100%; border: 0; cursor: pointer; }
.auth-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.login-help { display: grid; gap: 2px; margin-top: 28px; padding: 18px 20px; border-radius: 13px; background: var(--soft); }
.login-help strong { color: var(--ink); font-size: .83rem; }
.login-help span { color: var(--muted); font-size: .76rem; }
.login-help a { margin-top: 5px; color: var(--violet-dark); font-size: .78rem; font-weight: 850; }

.dashboard-section { min-height: 680px; padding: 82px 0 100px; background: var(--soft); }
.dashboard-shell { max-width: 1100px; }
.dashboard-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.dashboard-top h1 { margin: 14px 0 9px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.dashboard-top p { margin: 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portal-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(7,17,38,.07); }
.portal-card > span { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 34px; border-radius: 11px; color: var(--violet-dark); background: #ece9ff; font-size: .72rem; font-weight: 900; }
.portal-card h2 { margin-bottom: 12px; font-size: 1.35rem; }
.portal-card p { color: var(--muted); font-size: .88rem; }
.portal-card a { color: var(--violet-dark); font-size: .8rem; font-weight: 850; }
.dashboard-note { margin-top: 20px; padding: 23px 26px; border-left: 4px solid var(--aqua); border-radius: 0 15px 15px 0; color: #c6d3e6; background: var(--night); }
.dashboard-note strong { display: block; margin-bottom: 4px; color: #fff; }
.dashboard-note p { margin: 0; }

.site-footer { padding-top: 74px; color: #9babc5; background: #050d1d; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr .95fr 1.15fr; gap: 46px; padding-bottom: 62px; }
.site-footer h2 { margin-bottom: 17px; color: #fff; font-size: .86rem; letter-spacing: .01em; }
.site-footer a:not(.button) { display: block; margin-bottom: 8px; color: #9babc5; font-size: .84rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 310px; margin-top: 21px; color: #7f91b0; }
.fine-print { color: #6f819f; font-size: .76rem; }
.footer-action { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.035); }
.footer-action h2 { font-size: 1rem; }
.footer-action p { color: #bdc9dc; }
.footer-action p strong { color: #fff; font-size: 1.7rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); color: #687b9b; font-size: .72rem; }
.footer-bottom span:last-child { display: flex; gap: 20px; }

@media (max-width: 1020px) {
  .primary-nav { gap: 14px; }
  .menu { gap: 14px; }
  .menu a { font-size: .8rem; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-scope { margin-inline: auto; text-align: left; }
  .hero .button-row, .hero-proof { justify-content: center; }
  .dashboard-card { max-width: 610px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px 24px 26px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 20px 35px rgba(7,17,38,.12); }
  .primary-nav.is-open { display: block; }
  .menu { display: grid; gap: 0; }
  .menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .nav-cta { width: 100%; margin-top: 18px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .fit-band { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .pricing-shell { grid-template-columns: 1fr; }
  .application-shell { grid-template-columns: 1fr; }
  .application-intro { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 42px 36px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 72px 0; }
  .signal-inner { min-height: 42px; justify-content: center; text-align: center; }
  .signal-inner span { display: none; }
  .signal-inner a { border-left: 0; padding-left: 0; }
  .header-inner { min-height: 70px; }
  .brand img { width: 37px; height: 37px; }
  .brand-name { font-size: .95rem; }
  .agency-login-link { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .hero { padding: 72px 0 62px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.1rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-scope { grid-template-columns: 1fr; }
  .hero .button { width: 100%; }
  .dashboard-card { padding: 17px; border-radius: 21px; }
  .rank-panel { padding: 17px; }
  .rank-score strong { font-size: 2.2rem; }
  .trust-grid, .card-grid, .outcome-grid, .process-grid, .prose .feature-grid, .form-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; }
  .trust-grid div:last-child { border-bottom: 0; }
  .service-card { min-height: 0; }
  .outcome-grid article { min-height: 0; }
  .fit-band { padding: 30px 24px; }
  .service-card .icon { margin-bottom: 26px; }
  .price-side, .includes-side { padding: 32px 25px; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band { display: grid; padding: 36px 26px; text-align: center; }
  .cta-band .button { width: 100%; }
  .report-heading { display: grid; gap: 2px; }
  .report-heading small { text-align: left; }
  .report-item { grid-template-columns: 1fr; gap: 10px; }
  .status-pill { justify-self: start; }
  .page-hero { padding: 68px 0 58px; }
  .application-form { padding: 23px 18px; }
  .auth-section, .dashboard-section { padding: 56px 0 72px; }
  .auth-aside, .auth-card { padding: 34px 25px; }
  .auth-aside h1 { font-size: 2.6rem; }
  .auth-actions, .dashboard-top { align-items: stretch; flex-direction: column; }
  .dashboard-top .button { width: 100%; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-action { grid-column: auto; display: block; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

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