/* Agency AI: the shared Sophos layout, with the approved SMB identity. */
:root { --ink:#000; --ink-soft:#111; --accent:#006B20; --accent-hover:#005319; --accent-ink:#fff; }
.agency-site { --agency-gutter: 28px; }
.agency-site.homepage-wide { --agency-gutter: 14px; }
.agency-site :is(.sophos-nav-inner, .hero-grid, .wrap),
.agency-site .sophos-nav.menu-open ul { padding-inline: var(--agency-gutter); }
.agency-green { color:var(--accent); }
.agency-site :is(.eyebrow,.product-label), .agency-site .sophos-footer h4 { color:#006B20; }
.agency-site h1 { text-wrap:balance; }
.agency-site .hero-sub,.agency-site .lede { max-width:64ch; }
.agency-site .page-intro { padding:80px 0 56px; border-bottom:1px solid var(--rule); }
.agency-site .page-intro h1 {
  max-width: none;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin: 20px 0;
  text-wrap: wrap;
}
.agency-site .page-intro .lede { max-width: none; font-size: 19px; }
.agency-site .page-intro .lede + .lede { margin-top: 14px; }
.agency-site .page-intro p a { text-decoration: underline; text-underline-offset: 3px; }
:is(#dealership-advertising, #dealership-measurement) [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.agency-site .product-home-hero h1 { font-size:clamp(44px,4.4vw,64px); }
.agency-site .sophos-nav ul { gap:22px; }
.agency-site .sophos-nav .nav-cta { background:#006B20; color:#fff; border-color:#006B20; white-space:nowrap; }
.agency-site .sophos-nav .nav-cta:hover { background:#005319; }
/* Share text tracks within each visual row, including wrapped headings and copy. */
.agency-site .product-grid > .product-card { display:grid; grid-template-rows:subgrid; grid-row:span 4; row-gap:0; align-items:start; }
.agency-site .product-grid > .product-card > .product-label { grid-row:1; }
.agency-site .product-grid > .product-card > h3 { grid-row:2; }
.agency-site .product-grid > .product-card > p:not(.product-label) { grid-row:3; }
.agency-site .product-grid > .product-card > .product-link { grid-row:4; }
.agency-site .product-grid > .product-card--features { grid-row:span 5; }
.agency-site .product-grid > .product-card--features > .agency-features { grid-row:4; }
.agency-site .product-grid > .product-card--features > .product-link { grid-row:5; }
.agency-features { margin:16px 0 0; padding-left:18px; font-size:14px; line-height:1.65; }
.agency-features li { padding:5px 0; }
.agency-availability { margin-top:12px; max-width:52ch; font-size:13px; line-height:1.6; }
.agency-demo-link { display:inline-block; margin-top:8px; color:#006B20; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.agency-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.agency-three article { display:grid; grid-template-rows:subgrid; grid-row:span 2; row-gap:0; align-items:start; padding:28px 0; border-top:2px solid #006B20; }
.agency-three:has(> article > .product-label) > article { grid-row:span 3; }
.agency-three h3 { font-size:25px; line-height:1.2; letter-spacing:-.035em; margin:12px 0; }
.agency-three p { font-size:15px; line-height:1.7; }
.agency-contact-band { --ink:#fff; --muted:#fff; --paper:#000; background:#000; color:#fff; padding:80px 0; }
.agency-site .agency-contact-band h2 { color:#fff; }
.agency-contact-band .eyebrow { display:inline-block; background:#fff; padding:4px 8px; border-radius:4px; }
.agency-contact-band h2 { margin:22px 0; font-size:clamp(34px,4.5vw,62px); line-height:1.05; letter-spacing:-.04em; }
.agency-contact-band p { max-width:60ch; }
.agency-contact-band .btn-ghost { color:#fff; border-color:#fff; }
.agency-note { border:1px solid var(--rule); border-left:4px solid #006B20; border-radius:12px; padding:28px; background:#fff; }
.agency-note p { margin:12px 0 22px; max-width:75ch; }
.agency-note h2 { margin:16px 0; }
.agency-detail { display:grid; grid-template-columns:90px minmax(0,1fr); gap:35px; padding:40px 0; border-top:1px solid var(--rule); }
.agency-detail h2 { font-size:32px; line-height:1.2; margin-bottom:20px; letter-spacing:-.035em; }
.agency-detail p { max-width:75ch; font-size:17px; line-height:1.8; }
.agency-detail .product-label { color:#006B20; }
.agency-pricing .agency-note { margin-bottom:36px; }
.agency-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.agency-plan-card { display:grid; grid-template-rows:subgrid; grid-row:span 6; row-gap:0; align-items:start; min-width:0; border:1px solid var(--rule); border-radius:14px; padding:28px; margin:0; }
.agency-plan-card>.product-label { margin:0 0 14px; font-size:11px; }
.agency-plan-card>h2 { font-size:32px; line-height:1.15; letter-spacing:-.035em; margin:0 0 18px; }
.agency-plan-description { font-size:15px; line-height:1.6; margin:0; }
.agency-plan-card>.agency-features { margin:20px 0 28px; }
.agency-plan-choices { min-width:0; margin:0; padding:0; border:0; }
.agency-plan-choices legend { font-size:13px; font-weight:600; padding:0; margin-bottom:4px; }
.agency-plan-required { font-size:13px; line-height:1.6; margin:18px 0 0; }
.agency-plan-card>.product-link { margin-top:24px; }
.agency-plan-option { display:flex; align-items:start; gap:12px; border:1px solid var(--rule); border-radius:8px; padding:16px 12px; margin:12px 0 0; cursor:pointer; }
.agency-plan-option:has(input:checked) { border-color:#006B20; box-shadow:inset 0 0 0 1px #006B20; }
.agency-plan-option input { accent-color:#006B20; width:18px; height:18px; flex-shrink:0; margin-top:3px; }
.agency-plan-option span { font-size:13px; line-height:1.5; }
.agency-plan-option strong { display:block; color:#006B20; font-size:19px; margin-top:5px; font-weight:600; }
.agency-plan-summary { margin-top:30px; padding:32px; border:1px solid #006B20; border-radius:14px; display:grid; grid-template-columns:1fr 1fr; gap:35px; }
.agency-total { margin:12px 0; }
.agency-total output { font-size:54px; line-height:1.1; font-weight:600; color:#006B20; letter-spacing:-.04em; }
.agency-total>span { font-size:17px; }
#plan-summary { font-size:14px; }
.agency-plan-summary>div>p:not(.agency-total) { font-size:14px; line-height:1.7; }
.agency-plan-summary .btn { margin-top:22px; }
.agency-plan-summary small { display:block; font-size:12px; margin-top:12px; }
.agency-workflow { margin:20px 0 0; padding-left:22px; }
.agency-workflow li { padding:8px 0; font-size:15px; line-height:1.7; }
.agency-site .product-prose p { margin-top:20px; }
@media(max-width:1100px) { .agency-site .sophos-nav ul { gap:14px; } .agency-site .sophos-nav-inner { gap:16px; } }
@media(max-width:900px) { .agency-three,.agency-plan-grid { grid-template-columns:1fr; gap:20px; } .agency-plan-summary { grid-template-columns:1fr; } }
@media(max-width:760px) { .agency-site .page-intro { padding:48px 0 38px; } .agency-site .page-intro .lede { font-size:17px; } .agency-detail { grid-template-columns:1fr; gap:12px; padding:28px 0; } .agency-detail h2 { font-size:27px; } .agency-contact-band { padding:55px 0; } .agency-plan-summary { padding:24px; } .agency-site .sophos-nav-inner { gap:10px; } .agency-site .sophos-mark { gap:7px; } .agency-site .sophos-mark .submark { font-size:8px; letter-spacing:.1em; } .agency-site .nav-cta { font-size:11px; padding:9px 11px; } }
@media(max-width:370px) { .agency-site .sophos-mark .submark { display:none; } }

.agency-pricing-disclaimer { display:block; margin-top:14px; font-size:14px; line-height:1.6; font-weight:500; }

.agency-site .sophos-nav a { white-space: nowrap; }
.audience-section > .wrap > h2 { margin-bottom: 28px; }
.agency-site .audience-section .product-card { grid-row: span 3; }
.agency-site .audience-section .product-card > h3 { grid-row: 1; }
.agency-site .audience-section .product-card > p { grid-row: 2; }
.agency-site .audience-section .product-card > .product-link { grid-row: 3; }

.audience-names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 12px;
  list-style: none;
}
.audience-names li,
.audience-page-counts li {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
}
.audience-page-counts {
  display: grid;
  grid-template-columns: repeat(7, minmax(142px, 1fr));
  gap: 12px;
  list-style: none;
  overflow-x: auto;
  padding-bottom: 6px;
}
.audience-page-counts li {
  display: grid;
  gap: 4px;
  padding-inline: 14px;
  font-size: 15px;
  white-space: nowrap;
}
.audience-page-counts strong { color: var(--accent); font-size: 26px; }

#automotive-page-library,
#workflow-automation { scroll-margin-top: calc(var(--nav-h) + 16px); }
.automotive-page-types {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 52px);
  margin-top: 36px;
}
.automotive-page-types > section { border-top: 2px solid var(--accent); padding-top: 20px; }
.automotive-page-types h3 { font-size: 24px; margin-bottom: 14px; }
.automotive-page-types ul {
  display: grid;
  gap: 8px 28px;
  padding-inline-start: 1.2em;
}
.automotive-page-types li::marker { color: var(--accent); }
@media (min-width: 1000px) {
  .automotive-page-types > section:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  padding-left: 22px;
}
.workflow-steps li { padding: 14px 0; border-top: 1px solid var(--rule); }
.workflow-steps strong,
.workflow-steps span { display: block; }
.workflow-steps span { margin-top: 6px; }

.agency-site .workflow-intro h1 {
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.08;
}
.workflow-intro-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.7;
}
.workflow-quote { scroll-margin-top: var(--nav-h); }
.workflow-quote-card {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.workflow-quote-card > h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.workflow-quote-card [hidden] { display: none; }
.workflow-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.workflow-form-field { display: grid; gap: 8px; }
.workflow-form-field label { font-weight: 600; }
.workflow-form-wide { grid-column: 1 / -1; }
.workflow-form-field :is(input, select, textarea) {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.workflow-form-field textarea { resize: vertical; }
.workflow-form-preview { color: var(--muted); font-size: 14px; }
.workflow-form-error { margin-bottom: 14px; color: #9b2525; }
.workflow-form-error a { text-decoration: underline; }
.workflow-quote-form button:disabled { opacity: 0.65; }
.workflow-quote-thanks {
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  border-radius: 6px;
  background: #f0f7f1;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.workflow-quote-thanks h3 { margin-bottom: 8px; }
.workflow-quote-thanks .workflow-form-preview { margin-top: 10px; }

@media (min-width: 881px) and (max-width: 1060px) {
  .agency-site .sophos-nav ul { display: none; }
  .agency-site .nav-toggle { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .agency-site .sophos-nav.menu-open ul {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    padding-block: 20px;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--nav-h));
    overflow: auto;
  }
  .agency-site .sophos-nav.menu-open ul a { display: block; padding: 6px 0; }
}
@media (max-width: 880px) {
  .agency-site { --agency-gutter: 20px; }
  .agency-site.homepage-wide { --agency-gutter: 10px; }
}
@media (max-width: 760px) {
  .automotive-page-types,
  .workflow-steps,
  .workflow-quote-form { grid-template-columns: 1fr; }
}

.sophos-mark.agency-header-brand {
    --agency-wordmark-size: 33px;
    align-items: center;
    flex-shrink: 0;
    gap: 1px;
}
.agency-header-owl {
    --agency-owl-size: calc(1.74 * var(--agency-wordmark-size));
    flex: 0 0 var(--agency-owl-size);
    height: var(--agency-owl-size);
    margin-inline-start: calc(-0.19 * var(--agency-owl-size));
    background: currentColor;
    mask: url("../images/agency-athena-owl.png") center / contain no-repeat;
}
.agency-header-name {
    position: relative;
    display: block;
}
.sophos-mark .agency-header-name .wordmark {
    display: block;
    font-size: var(--agency-wordmark-size);
    line-height: 1.35;
}
.sophos-mark .agency-header-name .submark {
    position: absolute;
    display: block;
    inset-inline-end: 3%;
    inset-block-end: 8%;
    color: var(--ink);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}
@media (max-width: 760px) {
    .sophos-mark.agency-header-brand {
        --agency-wordmark-size: 30px;
    }
}
@media (forced-colors: active) {
    .agency-header-owl {
        forced-color-adjust: none;
        background: LinkText;
    }
}
