/* Owned Map agency page. Builds on landing.css (same fonts, colours, buttons, header, hero sky, FAQ). */
.ag .hero { padding-bottom: clamp(48px, 6vw, 96px); }
.ag .hero-copy { text-align: center; max-width: 900px; margin-inline: auto; }
.ag .hero-copy .pill-label { margin-bottom: 22px; }
.ag .hero-copy .lead { max-width: 60ch; margin-inline: auto; color: #3F4A63; }
.ag .cta-row { margin-top: 28px; }
.ag .proof-line { margin-top: 18px; font-size: 14px; color: #4A566F; text-align: center; }
.ag h1 { font-size: clamp(2.4rem, 4.4vw + .5rem, 4.4rem); }

/* illustrative AI answer */
.ag-demo { margin: clamp(36px, 5vw, 60px) auto 0; max-width: 760px; }
.ag-chat { background: #fff; border: 1px solid #E3EAF6; border-radius: 24px; box-shadow: 0 50px 90px -46px rgba(30,64,130,.5); overflow: hidden; text-align: left; }
.ag-chat-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #F5F8FD; border-bottom: 1px solid #E8EEF8; font-size: 12.5px; color: var(--text-3); }
.ag-chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D7DFEC; }
.ag-chat-bar span { margin-left: auto; font-weight: 500; }
.ag-chat p { margin: 0; padding: 18px 22px; font-size: 16px; line-height: 1.55; color: var(--text); }
.ag-chat p b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ag-a { background: linear-gradient(180deg, #F7FAFF, #fff); border-top: 1px solid #EDF2FA; }
.ag-a mark { background: #DCE9FF; color: var(--navy); font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.ag-src { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.ag-demo figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-3); }

/* cards */
.ag-grid3, .ag-grid4 { display: grid; gap: 16px; max-width: 1100px; margin-inline: auto; }
.ag-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-card { background: #fff; border: 1px solid #E6ECF6; border-radius: 22px; padding: clamp(20px, 2.4vw, 28px); }
.ag-card h3 { margin-bottom: 8px; }
.ag-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.ag-narrow { max-width: 1000px; }
.ag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ag-ticks { display: grid; gap: 12px; margin-top: 12px; }
.ag-ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.ag-ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #DCE9FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%232563EB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ag-ticks.no li::before { background: #F1F3F8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23778195' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* method */
.ag-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin-inline: auto; list-style: none; padding: 0; }
.ag-steps li { background: #fff; border: 1px solid #E6ECF6; border-radius: 22px; padding: 24px; }
.ag-steps .how-n { margin-bottom: 14px; }
.ag-steps h3 { margin-bottom: 8px; }
.ag-steps p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* plans */
.ag-per { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; background: #EEF3FC; border-radius: 999px; }
.ag-per-b { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 18px; border-radius: 999px; font: 600 14px/1 var(--sans); color: #3A4256; display: inline-flex; align-items: center; gap: 8px; }
.ag-per-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ag-per-b.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(20,40,90,.18); }
.ag-per-b i { font-style: normal; font-size: 12px; font-weight: 600; color: #15803D; background: #DCFCE7; padding: 3px 8px; border-radius: 999px; }
.ag-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1120px; margin-inline: auto; align-items: stretch; }
.ag-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E3EAF6; border-radius: 26px; padding: clamp(24px, 2.6vw, 34px); }
.ag-plan.ag-pop { border-color: #93B8F5; box-shadow: 0 40px 70px -40px rgba(37,99,235,.55); background: linear-gradient(180deg, #F6F9FF, #fff 40%); }
.ag-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: linear-gradient(180deg, #3B82F6, #2563EB); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ag-plan h3 { font-size: 1.35rem; }
.ag-for { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.ag-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.ag-price b { font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; color: #0A0F1F; font-variant-numeric: tabular-nums; }
.ag-price span { color: var(--text-3); font-size: 1.05rem; }
.ag-bill { margin-top: 6px; font-size: 13.5px; color: var(--text-3); min-height: 1.3em; }
.ag-feats { display: grid; gap: 12px; margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid #E6ECF6; flex: 1; }
.ag-feats li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.ag-feats li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #DCE9FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%232563EB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ag .btn.block { width: 100%; text-decoration: none; }
.ag .btn { text-decoration: none; }
.ag .pricing .fine { margin-inline: auto; }

/* closing */
.ag-final-card { position: relative; max-width: 900px; margin-inline: auto; text-align: center; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 32px; background: linear-gradient(180deg, #CFE3FA 0%, #EAF3FE 55%, #fff 100%); border: 1px solid #DCE8F8; }
.ag-final-card .lead { max-width: 56ch; margin-inline: auto; }
.ag-final-card .cta-row { margin-top: 26px; }
.ag-final-card .fine { margin-inline: auto; }

/* footer */
.ag-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--text-3); }
.ag-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.ag-foot p { margin: 0; }
.ag-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ag-foot a { color: var(--text-2); text-decoration: none; }
.ag-foot a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 1000px) { .ag-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ag-plans { grid-template-columns: 1fr; max-width: 520px; } .ag-grid3, .ag-two { grid-template-columns: 1fr; } .ag-badge { top: -12px; } .ag-plan.ag-pop { order: -1; } }
@media (max-width: 620px) { .ag-grid4, .ag-steps { grid-template-columns: 1fr; } .ag .cta-row .btn { width: 100%; } .pill-nav { display: none; } }

/* ---- headline with rotating AI logos ---- */
.ag h1 { font-size: clamp(2.05rem, 3.5vw + .6rem, 3.9rem); line-height: 1.08; letter-spacing: -.035em; }
.rot { position: relative; display: flex; justify-content: center; margin: .12em auto 0; height: 1.3em; overflow: hidden; transition: width .5s cubic-bezier(.22,1,.36,1); }
.rot-i { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .26em; height: 1.3em; white-space: nowrap; color: var(--ink); opacity: 0; transform: translateY(70%); transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.rot-i.on { opacity: 1; transform: none; }
.rot-i.out { opacity: 0; transform: translateY(-70%); }
.rot-i .ai-mark { width: .86em; height: .86em; flex: none; }
html:not(.js) .rot-i:first-child { position: static; opacity: 1; transform: none; }
.guarantee { display: inline-flex; align-items: flex-start; gap: 10px; margin: 22px auto 0; padding: 12px 18px; max-width: 46ch; border-radius: 18px; background: rgba(255,255,255,.72); border: 1px solid #D6E4FA; font-size: clamp(1rem, .35vw + .95rem, 1.2rem); line-height: 1.4; font-weight: 500; color: #1E2A4A; text-align: left; backdrop-filter: blur(6px); }
.guarantee svg { flex: none; margin-top: 2px; }
.ag .hero-copy { text-align: center; }
.proof-line a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.ag .device { max-width: 1120px; margin-inline: auto; }
.ag .device figcaption { text-align: center; font-size: 13px; color: var(--text-3); padding-top: 14px; }

/* ---- platforms strip ---- */
.ag-plats { padding: 8px 0 clamp(28px, 4vw, 48px); }
.ag-plats .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.ag-plats p { margin: 0; font-size: 14px; color: var(--text-3); }
.ag-plats ul { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.ag-plats li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: #2A3550; }
.ag-plats .ai-mark { width: 20px; height: 20px; }
.ag-plats li.g { color: #2A3550; }

/* ---- dashboard bits ---- */
.ag-zone { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ag-zone-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-zone-h b { font-size: 15px; color: var(--navy); }
.ag-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ag-chip.cited { background: #DCFCE7; color: #166534; } .ag-chip.grow { background: #DCE9FF; color: #1D4ED8; }
.ag-zone dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.ag-zone dt { font-size: 11.5px; color: var(--text-3); } .ag-zone dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }
.ag-spark { width: 100%; height: 64px; display: block; }
.delta.pos { color: var(--pos); font-size: 12.5px; }
.ag-pr-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 2px 12px; font-size: 13.5px; color: var(--text-2); }
.ag-pr-top b { font-size: 1.5rem; color: var(--navy); letter-spacing: -.02em; }
.ag-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ag-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.ag-table th, .ag-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #EEF2F8; }
.ag-table th { font-size: 11.5px; font-weight: 600; color: var(--text-3); background: #F8FAFD; }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-table .q { color: var(--navy); font-weight: 500; } .ag-table .z { color: var(--text-2); white-space: nowrap; }
.ag-table .eng { text-align: center; width: 64px; } .ag-table th.eng svg { width: 16px; height: 16px; vertical-align: middle; } .gtxt { font-weight: 700; color: #4285F4; }
.ag-table .ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7; color: #166534; font-weight: 700; font-size: 12px; }
.ag-table .no { color: #B6BECC; }
.ag-work { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ag-work li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.ag-work svg { flex: none; margin-top: 2px; }
.ag-work b { display: block; color: var(--navy); font-size: 14.5px; } .ag-work span { font-size: 13px; color: var(--text-2); }
.ag .map-box { height: clamp(280px, 26vw, 360px); }

/* ---- sections ---- */
.ag-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #EAF1FF; margin-bottom: 14px; }
.ag-mid { margin-top: clamp(24px, 3vw, 40px); }
.ag-gar { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 30px; background: linear-gradient(135deg, #EAF2FF, #fff 70%); border: 1px solid #D6E4FA; margin-bottom: 16px; }
.ag-big { margin: 0; font-size: clamp(3.6rem, 9vw, 7rem); line-height: 1; letter-spacing: -.06em; font-weight: 650; color: var(--blue); }
.ag-gar h2 { font-size: clamp(1.5rem, 1.8vw + 1rem, 2.3rem); }
.ag-gar .lead { margin-top: 12px; }
.ag-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; }
@media (max-width: 700px) { .ag-sticky:not([hidden]) { display: block; } .ag-footer { padding-bottom: 84px; } .ag-gar { grid-template-columns: 1fr; text-align: center; } .guarantee { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .rot, .rot-i { transition: none !important; } }

/* ---- fixes after the first render ---- */
.ag h1 { font-size: clamp(1.9rem, 2.6vw + .8rem, 3.3rem); }
.ag .hero-copy { max-width: 1040px; }
.ag .cta-row .btn-xl { width: auto; min-width: 0; padding-inline: 30px; flex: 0 1 auto; }

/* ---- H2 under the headline, autopilot, goal bar, work columns ---- */
h2.guarantee { margin: 22px auto 0; font-weight: 500; letter-spacing: -.005em; text-wrap: pretty; }
h2.guarantee .auto { display: block; margin-top: 4px; font-weight: 650; color: var(--blue-d); }
.side-foot { display: grid; gap: 6px; }
.auto-on { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #166534; }
.auto-on i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.ag-goal b { color: var(--pos); }
.ag-bar { position: relative; height: 8px; margin: 8px 0 4px; border-radius: 999px; background: #E8EEF8; }
.ag-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #3B82F6, #22C55E); }
.ag-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0A0F1F; border-radius: 2px; text-decoration: none; }
.ag-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.ag-colh { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ag-work.next li { align-items: center; }
.ag-work.next em { flex: none; min-width: 74px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--blue-d); background: #EAF1FF; padding: 4px 10px; border-radius: 999px; text-align: center; }
@media (max-width: 760px) { .ag-cols { grid-template-columns: 1fr; } }

/* ---- account block, competitors, reports ---- */
.ag-acct { display: grid; gap: 2px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 11px; background: #F1F5FC; border: 1px solid #E3EAF6; }
.ag-acct b { font-size: 13px; color: var(--navy); } .ag-acct span { font-size: 12px; color: var(--text-3); }
.ag-rank { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ag-rank li { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.ag-rank li.me { border-color: #93B8F5; background: linear-gradient(180deg, #F6F9FF, #fff); }
.ag-rank .rn { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.ag-rank .rb { height: 10px; border-radius: 999px; background: #E8EEF8; overflow: hidden; }
.ag-rank .rb i { display: block; height: 100%; border-radius: 999px; background: #B6C6E3; }
.ag-rank li.me .rb i { background: linear-gradient(90deg, #3B82F6, #2563EB); }
.ag-rank b { text-align: right; font-size: 13.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.ag-note { margin: 12px 2px 0; font-size: 13px; color: var(--text-2); }
.ag-reports li { align-items: center; }
.ag-reports .new { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: #166534; background: #DCFCE7; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 620px) { .ag-rank li { grid-template-columns: 1fr 56px; } .ag-rank .rb { grid-column: 1 / -1; order: 3; } }
