/* WP Accessibility Fixer — shared styles (from the WP Image Fixer site, brand colour teal). Mobile-first, no framework. */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #f0fdfa;
  --ink: #0f172a;
  --text: #1e293b;
  --text-2: #374151;
  --muted: #4b5563;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --green: #047857;
  --green-soft: #ecfdf5;
  --amber: #92400e;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--text-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); margin-bottom: .5rem; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--brand); font-weight: 800; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow); }
.nav-links a { display: block; padding: .6rem 0; color: var(--text); text-decoration: none; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-dark); }
@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-links, .nav-links.open { display: flex; flex-direction: row; position: static; gap: 1.5rem; align-items: center; padding: 0; box-shadow: none; border: 0; }
  .nav-links a { padding: .4rem 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.2rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-small { min-height: 36px; padding: .4rem .8rem; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #e2e8f0; color: #374151; border-color: #cbd5e1; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.nav-links .btn { color: #fff; padding: .45rem 1rem; }
.nav-links .btn[disabled] { color: #374151; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 5rem 0 4rem; } }
.hero .subtitle { font-size: 1.35rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .75rem; }
.hero .btn-row { margin: 1.5rem 0 1rem; }
.hero-note { font-size: .95rem; color: var(--muted); }

/* Chat transcript */
.chat { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .85rem; color: var(--muted); font-weight: 600; }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.chat-body { padding: 1.1rem; display: grid; gap: .9rem; }
.msg { max-width: 92%; padding: .8rem 1rem; border-radius: 14px; font-size: .97rem; }
.msg p:last-child, .msg ul:last-child { margin-bottom: 0; }
.msg ul { padding-left: 1.2rem; margin: .4rem 0 .6rem; }
.msg li { margin-bottom: .25rem; }
.msg-user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.msg-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .25rem; }
.msg-user .msg-label { color: #ccfbf1; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .25rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2rem; }
.icon { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); }
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding-left: 3.25rem; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps.grid > li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.5rem; box-shadow: var(--shadow); }
.steps.grid > li::before { left: 1.4rem; top: 1.5rem; }
.steps.stack > li { margin-bottom: 1.1rem; min-height: 2.25rem; }

/* Pricing */
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); }
.plan-name { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: .5rem 0 0; line-height: 1.1; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-tag { color: var(--text-2); margin: .5rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: .35rem 0 .35rem 1.7rem; position: relative; color: var(--text); }
.plan li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.plan .btn { width: 100%; }
.plan-note { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; text-align: center; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); vertical-align: middle; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: #f1f5f9; color: #374151; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--bg-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green); font-weight: 700; }
td.no { color: var(--muted); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: .25rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: .9rem 2rem .9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font-size: 1.4rem; color: var(--brand-dark); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-2); }

/* Code box */
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--ink); color: #fff; border-radius: 12px; padding: 1rem 1.1rem; }
.codebox code { flex: 1 1 260px; font-size: 1.05rem; word-break: break-all; color: #fff; }
.codebox .btn { background: #fff; color: var(--ink); }
.codebox .btn:hover { background: #ccfbf1; }
.codebox .copied { background: #d1fae5; color: #064e3b; }
kbd { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .35rem; }

.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--text); }
.callout-green { border-left-color: var(--green); background: var(--green-soft); }
.callout-amber { border-left-color: #d97706; background: var(--amber-soft); }
.callout-red { border-left-color: var(--red); background: var(--red-soft); }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #e2e8f0; border-radius: 18px; padding: 2.5rem 1.5rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2e8f0; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #94a3b8; }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.5rem 0 2rem; margin-top: 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--brand-dark); }
.footer-title { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--muted); }

/* Account dashboard */
.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.acct-head h1 { font-size: 1.8rem; margin: 0; }
.acct-email { color: var(--text-2); word-break: break-all; }
.meter { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.meter.low > span { background: #d97706; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.site-card { display: grid; gap: .9rem; }
.site-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.site-card h3 { margin: 0; word-break: break-word; }
.site-url { font-size: .9rem; word-break: break-all; }
.site-stats { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--text-2); font-size: .95rem; }
.site-stats b { color: var(--ink); }
.job { background: var(--brand-soft); border-radius: 10px; padding: .75rem .9rem; font-size: .92rem; color: var(--text); }
.job .meter { margin-top: .4rem; background: #99f6e4; }
.toggle { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .95rem; color: var(--text); }
.toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #f1f5f9; border: 1px solid var(--line); display: block; }
.spinner { display: inline-block; width: 1.1rem; height: 1.1rem; border: 3px solid #99f6e4; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
.scan-result { border-top: 1px dashed var(--line); padding-top: .9rem; }
.scan-result dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem 1rem; margin: 0 0 .75rem; }
.scan-result dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.scan-result dd { margin: 0; font-weight: 800; color: var(--ink); }
.empty { text-align: center; padding: 2.5rem 1.5rem; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-error { background: var(--red-soft); color: #7f1d1d; border: 1px solid #fecaca; }
.alert-info { background: var(--brand-soft); color: #134e4a; border: 1px solid #99f6e4; }
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.nowrap { white-space: nowrap; }
.saving { color: var(--green); font-weight: 700; }
[hidden] { display: none; }

/* Utilities */
figure.chat { margin: 0; }
.center-block { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
.justify-center { justify-content: center; }
pre.codebox { display: block; overflow-x: auto; margin: 0; white-space: pre; }
pre.codebox code { font-size: .92rem; word-break: normal; }
.h3-size { font-size: 1.3rem; margin: 0; word-break: break-word; }
.scan-result h4 { font-size: 1rem; margin-bottom: .6rem; }

/* Long source addresses on the country guides page wrap instead of overflowing on phones. */
.url { overflow-wrap: anywhere; }
