header  {
    padding:0;
    height:70px;
    border-bottom:1px solid var(--brand-border-colour);
}
header .logo    {
    padding:20px;    
    height:70px;
}
header .logo img    {
    max-width:100px;
}
header .analyze-button  {
    height:70px;
    padding:15px 20px 10px 0;
    width:50%;
}
header .button  {
    background: none;
    border:1px solid var(--brand-purple);
    float:right;
}

section.tools   {
    padding:20px;
    border-bottom:1px solid var(--brand-border-colour);
}
section.tools .six-columns  {
    padding:0 10% 0 0;
}
section.tools a {
    color: inherit;
}
section.tools .button   {
    background:var(--brand-purple);
    height:35px;
}
section.tools .button img   {
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
}
section.tools p {
    font-size: 1.1em;
}
section.tools .welcome  {
    margin: 0;
    font-size: 1em;
    line-height: 1.4em;
    font-style: italic;
    opacity: 0.6;
}

section.tabs    {
    border-bottom:1px solid var(--brand-border-colour);
    margin:0 0 20px 0;
}
section.tabs div    {
    width:50%;
    height:50px;
    font-size:1.1em;
    font-weight: 700;
    opacity:0.6;
}
section.tabs div.active {
    opacity:1;
    border-bottom:1px solid var(--brand-text-colour);
}

.ptl p  {
    margin:0 0 10px 0;
}

.nat a  {
    display: block;
    width:100%;
    margin:0 0 5px 0;
    color:var(--brand-text-colour);
}

.general    {
    padding:0 20px 20px 20px;
}
.general .tip    {
    padding:20px;
    margin:0 0 10px 0;
    transition:all 0.3s ease;
}
.general .tip.active    {
    border:1px solid var(--brand-text-colour);
}
.general .tip .q    {
    font-weight:700;
    font-size:1.3em;
}
.general .tip .q p  {
    width:calc(100% - 40px);
}
.general .tip .q div    {
    width:40px;
    height:40px;
    transform: scale(0.8);
    transform-origin: center center;
    transition:all 0.3s ease;
}
.general .tip .q div.acc-open div  {
    position: relative;
    top:8px;
    width:3px;
    height:20px;
    background:var(--brand-text-colour);
    border-radius:3px;
}
.general .tip .q div.acc-open div:first-child   {
    transform: rotate(45deg);
    left:25px;
}
.general .tip .q div.acc-open div:last-child   {
    transform: rotate(-45deg);
    left:10px;
}

.general .tip .q div.acc-close div:first-child   {
    transform: rotate(90deg);
    left:25px;
}
.general .tip .q div.acc-close div:last-child   {
    transform: rotate(-90deg);
    left:10px;
}

.general .tip .a    {
    font-size:1.3em;
    padding:10px 0 0 0;
}
.general .tip .a p  {
    margin:0 0 10px 0;
}
.general .tip .a ul {
    margin:0 0 10px 20px;
}
/* ========== AI answers tab ========== */
section.tabs div { width: 33.333%; }
section.ai { padding: 0 20px 40px; }
.ai-card { padding: 20px; margin: 0 0 20px 0; }
.ai-muted { opacity: 0.65; }
.ai-error { color: var(--brand-orange); }
.ai-headline { font-size: 1.4em; margin: 0 0 20px 0; }
.ai-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ai-top .button { background: var(--brand-purple); min-width: 180px; height: 40px; }
.ai-top .button.disabled { opacity: 0.5; pointer-events: none; }
.ai-progress { margin-top: 10px; max-width: 320px; }
.ai-engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.ai-engine .score-bar { margin: 8px 0; }
.ai-form { max-width: 640px; }
.ai-field { display: block; margin: 0 0 14px 0; }
.ai-field span { display: block; margin: 0 0 6px 0; }
.ai-field input, .ai-field select, .ai-field textarea {
    width: 100%; box-sizing: border-box; padding: 10px; font: inherit; color: inherit;
    background: transparent; border: 1px solid var(--brand-border-colour); border-radius: 6px;
}
.ai-field select option { color: #000; }
.ai-form .button { background: var(--brand-purple); height: 40px; margin: 10px 0; }
.ai-table-wrap { overflow-x: auto; }
.ai-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ai-table th, .ai-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--brand-border-colour); vertical-align: top; }
.ai-cell { white-space: nowrap; }
.ai-yes { color: var(--brand-green); }
.ai-no { color: var(--brand-orange); }
.ai-none { opacity: 0.4; }
.ai-open { text-decoration: underline; }
.ai-tag { margin-left: 8px; font-size: 0.8em; padding: 2px 6px; border: 1px solid var(--brand-border-colour); border-radius: 4px; opacity: 0.7; }
.ai-answer { display: block; width: 100%; line-height: 1.5em; max-height: 420px; overflow: auto; margin: 10px 0; }
.ai-answer p { margin: 0 0 8px 0; }
.ai-answer ul { padding-left: 20px; margin: 0 0 8px 0; }
.ai-detail a { color: inherit; }
.ai-domains { padding-left: 20px; }
.ai-domains li { margin: 0 0 6px 0; }
.ai-detail ul { padding-left: 20px; }
.ai-demo { margin: 0 0 20px 0; padding: 10px 20px; }

/* ========== PDF / print ========== */
section.tools .button.pdf { background: none; border: 1px solid var(--brand-purple); }
@media print {
    @page { margin: 14mm; }
    body { background: #fff !important; color: #000 !important; }
    body * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
    header, section.tools, section.tabs, .warning, .button, .text-button, .further-information, .copy-btn, .ai-top .button { display: none !important; }
    .accordion.hide { display: block !important; }
    .card, .page { border-color: #ccc !important; }
    .fix, .stat, .copy-fix { break-inside: avoid; }
    .fix-num { border: 1px solid #000; }
    .fix { border: 1px solid #bbb !important; border-left: 4px solid #666 !important; }
    .fix-how { border: 1px solid #ddd; }
    .score-bar { border: 1px solid #999 !important; }
    .score-bar .inner { background: #555 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .fix details { display: block; }
    .copy-code { max-height: none; overflow: visible; }
    a { text-decoration: none; }
}

/* ========== Have us fix it / progress ========== */
.fixes .dfy-cta { float: none; }
.dfy-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 14px 0 0 0;
    padding: 12px 14px; border: 1px dashed var(--brand-purple); border-radius: 8px; }
.dfy-cta .button { background: var(--brand-purple); min-width: 200px; height: 38px; }
.dfy-one { font-size: 0.9em; margin-top: 6px; clear: both; }
.fix details, .fix .dfy-one { clear: both; float: none; display: block; }
.dfy-modal { position: fixed; inset: 0; background: rgba(20,16,16,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.dfy-box { background: var(--brand-background); border: 1px solid var(--brand-border-colour); border-radius: 10px; padding: 24px;
    width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.dfy-box > * { float: none !important; clear: both; }
.dfy-box label { display: block; margin: 6px 0; line-height: 1.4em; }
.dfy-box input[type=email], .dfy-box textarea { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; color: inherit;
    background: transparent; border: 1px solid var(--brand-border-colour); border-radius: 6px; margin: 4px 0 12px 0; }
.dfy-box .button { background: var(--brand-purple); height: 40px; margin: 8px 0; }
.dfy-error { color: var(--brand-orange); }
.progress-headline { font-size: 1.3em; margin: 6px 0; }
.progress-chart { width: 100%; max-width: 420px; height: auto; margin-top: 8px; }
.progress-chart .axis { stroke: var(--brand-border-colour); stroke-width: 1; }
.progress-chart .line { fill: none; stroke: var(--brand-purple); stroke-width: 2; }
.progress-chart .dot { fill: var(--brand-purple); }
.progress-chart .lbl { fill: currentColor; opacity: 0.5; font-size: 8px; }
.dfy-box label.dfy-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.dfy-box label.dfy-check input { width: auto; float: none; display: inline-block; margin: 3px 0 0 0; flex: none; }
@media print { .dfy-cta, .dfy-one, .dfy-modal { display: none !important; } }

/* ========== AI answers allowance / top-up ========== */
.ai-allowance { margin-top: 6px; }
.ai-allowance .ai-topup { margin-top: 10px; max-width: 280px; }
.ai-topup-note { color: var(--brand-green); font-weight: 700; margin-bottom: 4px; }
@media print { .ai-topup { display: none !important; } }

/* ========== Editable AI questions ========== */
.ai-questions { margin: 10px 0 14px 0; padding: 16px 0 0 0; border-top: 1px solid var(--brand-border-colour); }
.ai-questions > * { float: none !important; }
.ai-qlist { list-style: decimal; margin: 12px 0 6px 0; padding-left: 26px; }
.ai-qlist li { margin: 0 0 8px 0; }
.ai-qlist li > * { float: none !important; }
.ai-qlist li { display: list-item; }
.ai-qrow { display: flex !important; align-items: center; gap: 10px; width: 100%; }
.ai-qrow input { flex: 1 1 auto; min-width: 0; width: auto !important; padding: 10px; font: inherit; color: inherit; background: transparent; border: 1px solid var(--brand-border-colour); border-radius: 6px; }
.ai-qrow .ai-qdel { flex: 0 0 auto; font-size: 0.85em; }
.ai-qcount { margin: 0 0 8px 0; }
.ai-form .ai-suggest { background: none; border: 1px solid var(--brand-purple); max-width: 320px; }

/* ---------- AI insights ---------- */
.ai-small { font-size: 0.85em; }
.ai-vis { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.ai-vis > div { width: auto; float: none; }
.ai-vis-score { text-align: center; min-width: 140px; }
.ai-vis-num { font-size: 3.4em; font-weight: 800; line-height: 1; margin-bottom: 6px; float: none; width: auto; }
.ai-band-low .ai-vis-num { color: var(--brand-red); }
.ai-band-mid .ai-vis-num { color: #ff9f00; }
.ai-band-good .ai-vis-num { color: var(--brand-green); }
.ai-vis-stats { flex: 1; min-width: 240px; line-height: 1.8; }
.ai-vis-stats > div { float: none; width: auto; }
.ai-board { display: grid; gap: 8px; margin: 10px 0; }
.ai-board-row { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr auto; gap: 12px; align-items: center; }
.ai-board-row > div { float: none; width: auto; }
.ai-board-name { overflow-wrap: anywhere; }
.ai-board-bar { height: 12px; border-radius: 6px; background: var(--brand-surface-3); overflow: hidden; }
.ai-board-bar .inner { height: 100%; background: #c9c3bf; border-radius: 6px; }
.ai-board-you .ai-board-name { font-weight: 800; }
.ai-board-you .ai-board-bar .inner { background: var(--brand-purple); }
.ai-board-n { white-space: nowrap; font-size: 0.9em; opacity: 0.8; }
.ai-missing { padding-left: 20px; }
.ai-missing li { margin: 0 0 14px 0; line-height: 1.5; }
.ai-missing li > div { float: none; width: auto; }
.ai-url { display: block; color: inherit; overflow-wrap: anywhere; opacity: 0.85; }
@media (max-width: 600px) { .ai-board-row { grid-template-columns: 1fr auto; } .ai-board-bar { grid-column: 1 / -1; grid-row: 2; } }
@media print { .ai-board-bar .inner { background: #555 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ========== New look (Dec 2026): the report sits on a white card ========== */
body.report-page { padding: 30px 16px 60px; }
.report-shell { max-width: 1000px; margin: 0 auto; float: none; background: #fff; border-radius: 16px; box-shadow: var(--brand-shadow); overflow: hidden; }
.report-shell > * { float: none; }
header.report-header { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; height: auto; padding: 20px 30px; border-bottom: 1px solid #eeeae7; }
header.report-header .ag-logo { font-size: 26px; }
section.tools { padding: 24px 30px; border-bottom: 1px solid #eeeae7; }
section.tools .button { height: 42px; width: auto; display: inline-flex; padding: 0 22px; }
section.tools .button.pdf { background: transparent; border: 1.5px solid var(--brand-ink); color: var(--brand-ink); box-shadow: none; }
section.tools .welcome { font-style: normal; opacity: 1; color: var(--brand-ink-2); }
section.tabs { margin: 0; border-bottom: 1px solid #eeeae7; }
section.tabs div { font-size: 14px; font-weight: 600; opacity: 1; color: var(--brand-muted); }
section.tabs div.active { color: var(--brand-ink); border-bottom: 2px solid var(--brand-orange); }
.report-shell .output { padding: 24px 30px 30px; }
.report-shell section.ai { padding: 24px 30px 40px; }
.report-shell .general { padding: 24px 30px 30px; }
.general .tip { border-radius: 12px; }
.general .tip.active { border-color: var(--brand-orange); }
.general .tip .a { font-size: 1em; color: var(--brand-ink-2); }
.ai-card { border-radius: 12px; }
.ai-band-mid .ai-vis-num { color: var(--brand-orange-deep); }
.ai-yes { color: #2f9a4f; }
.ai-no { color: var(--brand-orange-deep); }
.ai-field input, .ai-field select, .ai-field textarea, .ai-qrow input { background: #fff; }
.ai-form .ai-suggest, .ai-form .ai-suggest:hover { background: transparent; color: var(--brand-ink); border: 1.5px solid var(--brand-ink); box-shadow: none; }
.dfy-box { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 30px 70px rgba(20, 16, 16, 0.2); }
.dfy-cta { border-color: var(--brand-orange); background: #fff8f4; }
.text-button { color: var(--brand-orange-deep); }
.sample-banner { border-color: #eeeae7 !important; }
@media screen and (max-width: 767px) {
    body.report-page { padding: 0; }
    .report-shell { border-radius: 0; }
    header.report-header, section.tools, .report-shell .output, .report-shell section.ai, .report-shell .general { padding-left: 18px; padding-right: 18px; }
}
@media print {
    body.report-page { padding: 0; }
    .report-shell { box-shadow: none !important; border-radius: 0; max-width: none; }
}

/* ---------- Report shell matched to the GEO Scan design ---------- */
.report-shell { max-width: 960px; border-radius: 14px; }
header.report-header { padding: 26px 30px; }
header.report-header .ag-logo { font-size: 31px; }
header.report-header .report-for, .report-header-right .report-for { font-size: 14px; font-weight: 600; color: var(--brand-ink); text-align: right; word-break: break-all; width: auto; float: none; }
.report-header-right { display: flex !important; align-items: center; gap: 18px; width: auto; float: none; }
.report-shell .output { padding: 0; }
.report-shell .output-inner { padding: 0; }
.sample-banner { padding: 24px 30px; border-bottom: 1px solid #eeeae7; }
@media screen and (max-width: 700px) {
    header.report-header { flex-wrap: wrap; padding: 18px; }
    header.report-header .report-for { text-align: left; }
    .report-header-right { flex-wrap: wrap; }
}

/* Paid report: no intro text, just the actions (Update 69) */
section.tools { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 30px; }
section.tools > div { display: contents; }
section.tools p, section.tools .spacer { display: none !important; }
section.tools .button { margin: 0; }
@media screen and (max-width: 700px) { section.tools { padding: 16px 18px; } }

/* ========== Update 76: AI Answers and General Tips in the report design ========== */
/* Flat rows with hairlines, like the Report tab: no boxes, no shadows */
.report-shell section.ai { padding: 0 0 10px 0; }
.report-shell .ai-inner { padding: 0; float: none; }
.report-shell .ai-inner > .card, .report-shell .ai-inner > .ai-card, .report-shell .ai-demo {
    border: 0 !important; border-bottom: 1px solid #eeeae7 !important; border-radius: 0 !important;
    box-shadow: none !important; background: transparent !important; margin: 0 !important; padding: 26px 30px !important; float: none; width: 100%;
}
.report-shell .ai-inner > .card:last-child { border-bottom: 0 !important; }
.report-shell .ai-inner, .report-shell .ai-inner p, .report-shell .ai-inner li, .report-shell .ai-inner td, .report-shell .ai-inner .ai-board-name { font-size: 13px; line-height: 20px; color: var(--brand-ink); }
.report-shell .ai-inner .ai-muted { opacity: 1; color: var(--brand-ink-2); }
.report-shell .ai-inner .ai-small, .report-shell .ai-inner .ai-small * { font-size: 12px; line-height: 18px; color: var(--brand-muted); }
/* Section titles: "Share of voice", "Answers by question" and so on */
.report-shell .ai-inner > .card > p:first-child, .report-shell .ai-inner > .card > p:first-child strong,
.report-shell .ai-top > div:first-child > p:first-child {
    font-family: Inter, sans-serif; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brand-ink); margin: 0 0 4px 0;
}
.report-shell .ai-inner > .card > p.ai-muted:nth-child(2) { margin: 0 0 18px 0; }

/* Score block: big number left, stats right, like the summary */
.report-shell .ai-vis { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.report-shell .ai-vis-score { text-align: left; min-width: 0; }
.report-shell .ai-vis-num { font-family: Inter, sans-serif; font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px 0; }
.report-shell .ai-vis-score .ai-muted { font-size: 13px; color: var(--brand-ink); }
.report-shell .ai-vis-stats { line-height: 20px; }
.report-shell .ai-vis-stats > div { margin: 0 0 8px 0; font-size: 13px; }
.report-shell .ai-vis-stats strong { font-weight: 600; }
.report-shell .ai-band-mid .ai-vis-num { color: var(--brand-orange-deep); }
.report-shell .ai-band-good .ai-vis-num { color: #2f9a4f; }

/* Mentions by assistant */
.report-shell .ai-headline { font-family: Inter, sans-serif; font-size: 15px !important; line-height: 22px !important; font-weight: 600; margin: 0 0 18px 0; }
.report-shell .ai-engines { gap: 30px; }
.report-shell .ai-engine, .report-shell .ai-engine * { font-size: 13px; }
.report-shell .ai-engine .score-bar { height: 8px; border-radius: 999px; background: #efebe8; overflow: hidden; margin: 8px 0 6px 0; }
.report-shell .ai-engine .score-bar .inner { height: 100%; border-radius: 999px; }

/* Share of voice */
.report-shell .ai-board { gap: 10px; margin: 4px 0 14px 0; }
.report-shell .ai-board-bar { height: 8px; border-radius: 999px; background: #efebe8; }
.report-shell .ai-board-bar .inner { border-radius: 999px; background: #cfc8c3; }
.report-shell .ai-board-you .ai-board-name { font-weight: 600; }
.report-shell .ai-board-you .ai-board-bar .inner { background: var(--brand-gradient); }
.report-shell .ai-board-n { font-size: 12px; color: var(--brand-ink-2); opacity: 1; }

/* Lists: sites to get listed on, your pages, who AI recommends */
.report-shell .ai-missing, .report-shell .ai-domains, .report-shell .ai-inner ol { padding-left: 18px; margin: 0; }
.report-shell .ai-missing li { margin: 0 0 14px 0; }
.report-shell .ai-missing li strong { font-weight: 600; }
.report-shell .ai-url { font-size: 12px; color: var(--brand-ink-2); opacity: 1; }
.report-shell .ai-tag { font-size: 11px; opacity: 1; color: var(--brand-ink-2); border-color: #e2dcd8; border-radius: 999px; padding: 1px 8px; }

/* Answers by question */
.report-shell .ai-table th { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; color: var(--brand-muted); padding: 0 10px 10px 0; border-bottom: 1px solid #eeeae7; }
.report-shell .ai-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid #eeeae7; }
.report-shell .ai-table tr:last-child td { border-bottom: 0; }
.report-shell .ai-table .ai-yes, .report-shell .ai-table .ai-no { font-weight: 500; }
.report-shell .ai-top .button { border-radius: 999px; background: var(--brand-gradient); }

@media screen and (max-width: 700px) {
    .report-shell .ai-inner > .card, .report-shell .ai-inner > .ai-card { padding: 22px 18px !important; }
    .report-shell .ai-vis { grid-template-columns: 1fr; gap: 16px; }
}

/* General Tips: flat accordion rows, no shadows */
.report-shell .general { padding: 0 0 10px 0; }
.report-shell .general .tip, .report-shell .general .tip.card {
    box-shadow: none !important; border: 0 !important; border-bottom: 1px solid #eeeae7 !important; border-radius: 0 !important;
    background: transparent !important; margin: 0 !important; padding: 22px 30px !important; transition: none;
}
.report-shell .general .tip.active { border-color: #eeeae7 !important; }
.report-shell .general .tip .q { font-size: 15px; }
.report-shell .general .tip .q p { font-family: Inter, sans-serif; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brand-ink); }
.report-shell .general .tip .q div.acc { transform: scale(0.5); }
.report-shell .general .tip .a { padding: 12px 0 0 0; }
.report-shell .general .tip .a, .report-shell .general .tip .a p, .report-shell .general .tip .a li { font-size: 13px; line-height: 21px; color: var(--brand-ink-2); }
@media screen and (max-width: 700px) { .report-shell .general .tip, .report-shell .general .tip.card { padding: 20px 18px !important; } }
/* AI Answers rows hold floated children: contain them */
.report-shell .ai-inner > .card { display: flow-root; }
.report-shell .ai-inner > .card.ai-top { display: flex; }
.report-shell .ai-inner > .card.ai-vis { display: grid !important; }
/* Update 76: gradient on report buttons and bars */
section.tools .button:not(.pdf), .ai-top .button, .ai-form .button:not(.ai-suggest), .dfy-box .button, .dfy-cta .button { background-image: var(--brand-gradient); background-color: #fd5108; }
.ai-board-you .ai-board-bar .inner, .report-shell .ai-board-you .ai-board-bar .inner { background: var(--brand-gradient-x) !important; }
.report-shell .ai-engine .score-bar .inner { background: var(--brand-gradient-x) !important; }
.report-shell .ai-headline { margin-bottom: 22px !important; }
