/* AI Meta Tag Generator page — layered on css/home-2026.css.
   Everything here is scoped to amg- classes (plus #amg ids) so it only
   touches this page. Colours come from the :root tokens in home-2026.css;
   the only hardcoded colours are inside .amg-serp (it has to imitate a
   real Google result) and the two error reds specified for contrast. */

/* --- Hero --- */
.amg-hero { padding: 150px 0 80px; }
.amg-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.amg-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; margin: 22px 0 0; }
.amg-hero h1 .gold-text { background: linear-gradient(100deg, var(--gold), var(--gold-soft) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.amg-hero .lede { color: var(--grey-light); font-size: 1.1rem; line-height: 1.65; margin: 22px 0 28px; max-width: 540px; }

.amg-points { list-style: none; display: grid; gap: 12px; }
.amg-points li { display: flex; gap: 12px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--grey-light); }
.amg-points li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* --- Form card --- */
.amg-form { border-color: var(--gold-line); box-shadow: 0 40px 90px -50px var(--gold-glow); }
.amg-form h2 { font-size: 1.35rem; margin-bottom: 6px; }
.amg-form .sub { color: var(--grey); font-size: 0.88rem; margin-bottom: 22px; }
.amg-noscript { font-family: var(--mono); font-size: 0.72rem; line-height: 1.55; color: var(--gold-soft); border: 1px solid var(--gold-line); background: var(--gold-dim); border-radius: 10px; padding: 11px 13px; margin-bottom: 18px; }
.amg-off { position: absolute; left: -9999px; }
.amg-hint { font-family: var(--mono); font-size: 0.66rem; line-height: 1.5; color: var(--grey-2); margin-top: 8px; }
.amg-status { font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; margin-top: 12px; }
#amgBusy { color: var(--gold-soft); }
.amg-error { color: #F87171; }
.amg-form button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.amg-form :focus-visible, .amg-results :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Programmatic focus target after generating: no ring flash, keyboard
   :focus-visible behaviour is kept everywhere else. */
#amgResultsHeading:focus { outline: none; }

/* --- Results --- */
.amg-results { scroll-margin-top: 92px; }
.amg-results h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.amg-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.amg-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.amg-serp, .amg-social { min-height: 156px; }

/* Google-style result card. The hardcoded colours are deliberate: this
   card is meant to look like a real SERP snippet. All three are ≥4.5:1
   on white. */
.amg-serp { background: #fff; border-radius: 12px; padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; }
.amg-serp-url { font-size: 0.8rem; line-height: 1.4; color: #4d5156; }
.amg-serp-title { font-size: 1.05rem; line-height: 1.3; font-weight: 500; color: #1a0dab; margin: 4px 0; }
.amg-serp-desc { font-size: 0.87rem; line-height: 1.5; color: #4d5156; }

/* Social share card */
.amg-social { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.amg-social-site { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.amg-social-title { font-size: 1rem; font-weight: 650; line-height: 1.35; color: var(--white); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.amg-social-desc { font-size: 0.85rem; line-height: 1.55; color: var(--grey-light); padding: 12px 16px; border-bottom: 1px solid var(--line); flex: 1; }
.amg-social-url { font-family: var(--mono); font-size: 0.62rem; color: var(--grey-2); padding: 12px 16px; }

/* --- Output fields --- */
.amg-output { max-width: 780px; }
.amg-count { display: block; text-align: right; font-family: var(--mono); font-size: 0.66rem; color: var(--grey-2); margin-top: 6px; }
.amg-count.is-ok { color: var(--green); }
.amg-count.is-warn { color: var(--gold-soft); }
.amg-count.is-over { color: #F87171; }

.amg-tips-h { font-size: 1.05rem; margin: 26px 0 12px; }
.amg-tips { list-style: none; display: grid; gap: 10px; }
.amg-tips li { display: flex; gap: 10px; font-size: 0.92rem; line-height: 1.6; color: var(--grey-light); }
.amg-tips li::before { content: "→"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.amg-copy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; align-items: center; }
.amg-copy-row .amg-status { margin-top: 0; }

/* --- Body copy --- */
.amg-prose { max-width: 780px; margin: 0 auto; display: grid; gap: 18px; }
.amg-prose p { color: var(--grey-light); font-size: 1rem; line-height: 1.7; }
.amg-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.amg-prose a:hover { color: var(--gold-soft); }

/* --- FAQ --- */
.amg-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 18px; }
.amg-faq-item { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.amg-faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.amg-faq-item p { color: var(--grey-light); font-size: 0.94rem; line-height: 1.65; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .amg-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .amg-previews { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .amg-hero { padding: 120px 0 56px; }
  .amg-faq-item { padding: 20px; }
}
