/* Agency Eagle. Colors from the original logo and site: blue #146ba7, cyan #00b3e9, slate headings. */
:root {
  --brand: #146ba7;
  --brand-dark: #0d4f80;
  --accent: #00b3e9;
  --heading: #34536e;
  --ink: #2f3a45;
  --muted: #5f6b77;
  --bg: #ffffff;
  --panel: #eef5fb;
  --line: #d9e3ec;
  --danger: #a3261b;
  --radius: 6px;
  --max: 1160px;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px; z-index: 10; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar and header */
.topbar { background: var(--brand-dark); color: #d6e6f3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.site-header { background: var(--brand); }
.site-header .container { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { width: 265px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .15); }
.header-call { background: #fff; color: var(--brand); font-weight: 700; padding: 9px 16px; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }

/* Buttons */
.button { display: inline-block; background: var(--brand); color: #fff; padding: 11px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 700; border: 2px solid var(--brand); cursor: pointer; font-size: 1rem; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.big { padding: 14px 26px; font-size: 1.05rem; }
.button.ghost { background: transparent; color: var(--brand); }
.button.ghost:hover { background: var(--brand); color: #fff; }
.cta-button { background: var(--accent); border-color: var(--accent); color: #062a43; }
.cta-button:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }

/* Hero */
.hero { background: var(--panel); padding: 56px 0 64px; border-bottom: 4px solid var(--accent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--brand); font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin: 0 0 16px; color: var(--heading); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }
.offer-card { background: #fff; border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(20, 107, 167, .15); }
.offer-card h2 { margin: 4px 0 8px; font-size: 1.4rem; }
.offer-tag { display: inline-block; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0; }
.offer-price { font-size: 2.8rem; font-weight: 800; color: var(--brand); margin: 0 0 12px; line-height: 1; }
.offer-price .from { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.offer-price .per { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.offer-card .button { width: 100%; text-align: center; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.product { display: flex; flex-direction: column; border-top: 4px solid var(--brand); }
.product p { flex: 0 0 auto; }
.product .starting { margin-top: auto; color: var(--muted); }
.product .starting strong { display: block; font-size: 1.6rem; color: var(--brand); }
.product .button { text-align: center; }
.trust { background: var(--brand); color: #e3eef7; padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.trust p { margin: 0; }
.trust-big { font-size: 1.6rem; font-weight: 800; color: #fff; }
.band { background: var(--panel); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.cta { background: var(--brand-dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #d6e6f3; }

/* Inner pages */
.page-head { background: var(--panel); padding: 44px 0; border-bottom: 4px solid var(--accent); }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; }
.service h2 { font-size: 1.3rem; margin: 0 0 6px; }
.plan { border-top: 6px solid var(--brand); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--brand); margin: 8px 0 16px; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); }
.faq h3 { margin-bottom: 4px; }
.faq p { margin-top: 0; }
.prose { max-width: 760px; }
.contact-form label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--heading); }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.contact-form button { margin-top: 18px; }
.hp { position: absolute; left: -9999px; }
.contact-box { background: var(--panel); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--brand); }
.contact-box h2 { margin-top: 0; font-size: 1.25rem; }

/* Footer */
.site-footer { background: #fbfbfb; border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--muted); }
.footer-head { font-weight: 700; color: var(--heading); margin-top: 0; }
.copyright { margin-top: 24px; font-size: .85rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: 0; }
  .header-call { order: -1; margin-left: auto; }
  .logo img { width: 210px; }
}

/* Admin */
.admin-auth { min-height: 100vh; display: grid; place-items: center; background: var(--panel); padding: 16px; }
.auth-card { background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.35rem; margin-top: 0; }
.auth-card label { display: block; font-weight: 600; margin: 16px 0 6px; }
.auth-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; }
.auth-card button { margin-top: 20px; width: 100%; background: var(--brand); color: #fff; border: 0; padding: 12px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; }
.auth-google { display: block; text-align: center; }
.auth-other { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.auth-other summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.admin-form { max-width: 380px; }
.admin-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.admin-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; }
.admin-form button { margin-top: 20px; background: var(--brand); color: #fff; border: 0; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; }
.notice { background: #e8f4fb; color: var(--brand-dark); padding: 10px 12px; border-radius: var(--radius); }
.alert { background: #fbeceb; color: var(--danger); padding: 10px 12px; border-radius: var(--radius); }
.admin-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--brand); color: #fff; flex-wrap: wrap; }
.admin-bar a { color: #fff; }
.plan.featured { border-top-color: var(--accent); box-shadow: 0 10px 30px rgba(20, 107, 167, .15); }
.plan .offer-tag { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--heading); color: #fff; }
.compare thead th:last-child { background: var(--brand); }
.compare tbody th { color: var(--heading); width: 16%; }
.compare td:last-child { color: var(--brand-dark); font-weight: 600; background: #f3f9fd; }
.page-head .slogan { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--brand); max-width: 760px; margin: 0 0 8px; font-style: italic; }

/* AI-Ready Site Score */
.score-band { background: var(--brand-dark); color: #d6e6f3; padding: 36px 0; }
.score-band h2 { color: #fff; margin: 0 0 8px; }
.score-band .eyebrow { color: var(--accent); }
.score-band p { margin: 0; }
.score-band-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.quiz-card { background: #fff; border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(20, 107, 167, .15); min-height: 320px; }
.quiz-card h2 { margin: 0 0 4px; }
.quiz-gate label { margin-top: 10px; }
.quiz-gate button { width: 100%; }
.form-note { color: var(--muted); margin: 0 0 8px; font-size: .95rem; }
.form-error { color: var(--danger); margin: 6px 0 0; font-weight: 600; }
.quiz-progress { height: 8px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.quiz-count { color: var(--muted); font-size: .85rem; margin: 8px 0 16px; overflow-wrap: anywhere; }
.quiz-q { border: 0; padding: 0; margin: 0; }
.quiz-q legend { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 12px; padding: 0; }
.quiz-option { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; font: inherit; color: var(--ink); cursor: pointer; }
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--brand); background: var(--panel); }
.quiz-why { color: var(--muted); font-size: .9rem; }
.quiz-back { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 4px 0; }
.working-list li { animation: ae-fade .4s ease; }
@keyframes ae-fade { from { opacity: 0; } to { opacity: 1; } }
.score-top { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.score-ring { --pct: 0; --ring: var(--danger); width: 170px; height: 170px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--panel) 0); flex: 0 0 auto; }
.score-ring.grade-a, .score-ring.grade-b { --ring: #1d7d46; }
.score-ring.grade-c { --ring: #b7791f; }
.score-num { font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; }
.score-of { color: var(--muted); font-size: .9rem; }
.score-summary { flex: 1 1 280px; }
.score-grade { font-size: 1.5rem; font-weight: 800; color: var(--heading); margin: 0 0 8px; }
.fix-list { padding-left: 0; list-style: none; counter-reset: fix; display: grid; gap: 14px; }
.fix-list li { counter-increment: fix; position: relative; padding-left: 64px; }
.fix-list li::before { content: counter(fix); position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.fix-list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.fix-list p { margin: 0 0 6px; }
.fix-plan { font-weight: 600; }
.report-offer { margin: 32px 0; }
.call-link { font-weight: 700; }
.breakdown .group { margin-bottom: 12px; padding: 0; }
.breakdown summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--heading); }
.check-list { list-style: none; margin: 0; padding: 0 20px 12px; }
.check { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.check p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.check-mark { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.check.ok .check-mark { background: #1d7d46; }
.check.part .check-mark { background: #b7791f; }
.check.bad .check-mark { background: var(--danger); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--panel); color: var(--heading); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 14px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--brand); }

/* CRM */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crm-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.crm-nav a { padding: 10px 14px; text-decoration: none; color: var(--heading); font-weight: 600; border-bottom: 3px solid transparent; }
.crm-nav a[aria-current] { border-bottom-color: var(--brand); color: var(--brand); }
.crm { max-width: 1400px; padding-bottom: 48px; }
.crm input, .crm select, .crm textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; max-width: 100%; }
.crm textarea { width: 100%; display: block; margin-bottom: 8px; }
.crm-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.crm-search input[type=search] { flex: 1 1 260px; }
.crm-add { margin-bottom: 20px; }
.crm-add summary { list-style: none; }
.crm-add summary::-webkit-details-marker { display: none; }
.crm-form { display: grid; gap: 10px; max-width: 460px; margin-top: 12px; }
.crm-form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.crm-form .crm-checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.crm-board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.crm-col { background: var(--panel); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.crm-col h2 { font-size: 1rem; margin: 0 0 10px; display: flex; justify-content: space-between; }
.crm-col h2 span { color: var(--muted); font-weight: 400; }
.crm-col-won { background: #e9f5ee; }
.crm-col-lost { opacity: .75; }
.crm-card { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.crm-card:hover, .crm-card:focus-visible { border-color: var(--brand); }
.crm-card strong { color: var(--heading); }
.crm-value { color: #1d7d46; font-weight: 700; }
.crm-next { color: var(--brand-dark); }
.crm-meta { color: var(--muted); font-size: .85rem; }
.crm-sub { color: var(--muted); margin-top: -8px; overflow-wrap: anywhere; }
.crm-stages { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 24px; }
.crm-stage { background: var(--panel); border: 1px solid var(--line); padding: 8px 14px; font: inherit; cursor: pointer; color: var(--heading); margin: 0 -1px -1px 0; }
.crm-stage:hover { background: #fff; }
.crm-stage.current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.crm-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; }
.crm-detail h2 { font-size: 1.2rem; }
.crm-value-big { font-size: 1.4rem; font-weight: 800; color: #1d7d46; margin: 0 0 12px; }
.crm-tasks { list-style: none; padding: 0; margin: 0 0 12px; }
.crm-tasks li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crm-tasks li span { flex: 1; overflow-wrap: anywhere; }
.crm-tasks em { color: var(--muted); font-style: normal; font-size: .85rem; }
.crm-tasks li.late em { color: var(--danger); font-weight: 700; }
.crm-tasks li.today em { color: var(--brand); font-weight: 700; }
.crm-tasks.done span { color: var(--muted); text-decoration: line-through; }
.crm-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; color: var(--brand); cursor: pointer; font-weight: 800; }
.crm-check:hover { background: var(--brand); color: #fff; }
.crm-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.crm-inline input:first-of-type { flex: 1 1 240px; }
.crm-notes { list-style: none; padding: 0; }
.crm-notes li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.crm-notes p { margin: 4px 0 0; overflow-wrap: anywhere; }
.crm-del { display: inline; margin-left: 8px; }
.crm-danger { margin-top: 24px; color: var(--danger); }
.crm-danger label { display: grid; gap: 4px; margin: 8px 0; color: var(--ink); }
@media (max-width: 820px) {
  .crm-detail { grid-template-columns: 1fr; }
  .crm-board { grid-template-columns: repeat(6, 78vw); scroll-snap-type: x mandatory; }
  .crm-col { scroll-snap-align: start; }
}

/* Admin: Sites */
.sites-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin: 16px 0; }
.sites-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sites-search label { font-weight: 600; }
.sites-search input { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; min-width: 240px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.tag-ok { background: #e3f4ea; color: #1d6b3c; }
.tag-warn { background: #fdf0e3; color: #8a4310; }
.tag-bad { background: #fbeceb; color: #a1281e; }
