/* ai-schema.css: AI Schema Generator start screen on schema-tools.html (#ai-schema).
   Same layout and colours as the Combined Audit wizard (combined-audit.css + combined-audit-extras.css),
   every rule scoped to #sgw so the other tools on schema-tools.html are not affected. */
@font-face{font-family:'Outfit';font-style:normal;font-weight:300 900;font-display:optional;
  src:url('/fonts/QGYvz_MVcBeNP4NJtEtq.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:300 900;font-display:optional;
  src:url('/fonts/QGYvz_MVcBeNP4NJuktqQ4E.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Colour tokens: the Combined Audit's own values (combined-audit.css), light and dark */
#sgw{
  --blue:#1e3a8a;--blue2:#1d4ed8;--blue3:#3b82f6;
  --green:#16a34a;
  --text:#1e293b;--text2:#475569;--text3:#94a3b8;
  --bg:#ffffff;--bg2:#f0f4ff;--bg3:#e8f0fe;
  --border:#dbeafe;--card:#ffffff;
}
[data-theme='dark'] #sgw{
  --blue:#2563eb;--blue2:#60a5fa;--blue3:#3b82f6;
  --green:#22c55e;
  --text:#e2e8f0;--text2:#a3b2cc;--text3:#7789a8;
  --bg:#0a1633;--bg2:#0b1a40;--bg3:#12275f;
  --border:#22386b;--card:#0f1f45;
}

/* Screen: fixed over the tool, under the page's top bar (z 100) and tool nav (z 99) so they stay usable */
html.sgw-open,html.sgw-open body{overflow:hidden}
#sgw{position:fixed;inset:0;z-index:98;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;
  padding:120px 20px 20px;
  background:radial-gradient(1100px 700px at 50% -10%,var(--bg3),transparent 55%),var(--bg2);
  font-family:'Outfit',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:var(--text);line-height:normal}
#sgw.sgw-hidden{display:none}
#sgw *{box-sizing:border-box}
#sgw h2,#sgw h3{font-family:inherit;letter-spacing:-.5px;line-height:1.15}
#sgw .caw-screen{width:100%;max-width:1040px;margin:auto}
#sgw .caw-inner{text-align:center}

/* Logo pair */
#sgw .caw-logo{line-height:0;margin-bottom:28px}
#sgw .caw-logo-img{height:64px;width:auto;max-width:100%}
#sgw .caw-logo-dark{display:none}
[data-theme='dark'] #sgw .caw-logo-light{display:none}
[data-theme='dark'] #sgw .caw-logo-dark{display:inline-block}

/* Title and sub-line */
#sgw .caw-title{font-size:clamp(32px,6vw,64px);font-weight:800;letter-spacing:-.02em;line-height:1.1;color:var(--text);margin:0 0 20px}
#sgw .caw-hl{display:inline-block;color:var(--blue2);background:var(--bg3);border:1px solid var(--border);border-radius:18px;padding:4px 22px;margin-top:10px}
[data-theme='dark'] #sgw .caw-hl{color:#7cb0ff}
#sgw .caw-sub{font-size:17px;font-weight:500;color:var(--text2);max-width:780px;margin:0 auto 40px;line-height:1.6}

/* URL box + button (hero and closing) */
#sgw .caw-start{max-width:420px;margin:0 auto 36px;display:flex;flex-direction:column;gap:12px}
#sgw .caw-start-box{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--border);border-radius:999px;padding:0 22px;box-shadow:0 8px 24px rgba(30,58,138,.08)}
#sgw .caw-start-box:focus-within{border-color:var(--blue3);box-shadow:0 0 0 3px var(--bg3)}
#sgw .caw-start-globe{font-size:18px;opacity:.7}
#sgw .caw-start-url{flex:1;min-width:0;width:auto;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:17px;padding:17px 0;box-shadow:none;outline:none}
#sgw .caw-start-url:focus{outline:none;border:0;box-shadow:none}
#sgw .caw-start-url::placeholder{color:var(--text3)}
#sgw .caw-start-go{border:0;border-radius:14px;padding:17px;background:#2563eb;color:#fff;font:inherit;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.25)}
#sgw .caw-start-go:hover{background:#1d4ed8}
#sgw .caw-start-go:focus-visible{outline:2px solid var(--blue3);outline-offset:2px}
#sgw .caw-start-go:disabled{background:var(--bg3);color:var(--text3);box-shadow:none;cursor:wait}
#sgw .caw-start-note{margin:2px 0 0;font-size:14px;font-weight:600;color:var(--text3);text-align:center}
#sgw .caw-dot{margin:0 8px}
#sgw .sgw-err{margin:0;font-size:14px;font-weight:600;color:#b91c1c;text-align:center}
[data-theme='dark'] #sgw .sgw-err{color:#f87171}
#sgw .sgw-err:empty{display:none}

/* Advanced controls link */
#sgw .caw-power{background:none;border:none;color:var(--text2);font-family:inherit;font-size:12px;cursor:pointer;text-decoration:underline;padding:0}
#sgw .caw-power:hover{color:var(--blue2)}

/* Section labels and headings */
#sgw .caw-sec-label{margin:88px 0 8px;text-align:center;font-size:clamp(28px,4vw,44px);font-weight:800;letter-spacing:-.02em;color:var(--text)}
#sgw .caw-sec-head{margin:24px 0 32px;text-align:left}
#sgw .caw-sec-title{font-size:clamp(26px,4vw,42px);font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--text);margin:0 0 14px}
#sgw .caw-sec-title-2{display:block;color:var(--text3)}
#sgw .caw-sec-sub{font-size:17px;font-weight:500;color:var(--text2);max-width:720px;margin:0;line-height:1.5}
#sgw .caw-sec-center{text-align:center;margin-bottom:32px}
#sgw .caw-sec-label+.caw-sec-center{font-size:20px;font-weight:600;letter-spacing:0;color:var(--text2);margin-top:0}

/* Features grid with coloured tiles */
#sgw .caw-feats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:20px;overflow:hidden;text-align:left}
#sgw .caw-feat{display:flex;align-items:flex-start;gap:16px;background:var(--card);padding:28px 24px}
#sgw .caw-feat-txt{display:flex;flex-direction:column;gap:6px}
#sgw .caw-feat-name{font-size:16px;font-weight:700;color:var(--text);letter-spacing:-.01em}
#sgw .caw-feat-desc{font-size:14px;font-weight:500;line-height:1.55;color:var(--text2)}
#sgw .caw-feat-icon{flex:0 0 44px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:20px;border-radius:12px;background:rgba(37,99,235,.1);border:1px solid rgba(37,99,235,.25)}
#sgw .caw-feat:nth-child(3n+2) .caw-feat-icon{background:#dcfce7;border-color:rgba(22,163,74,.3)}
#sgw .caw-feat:nth-child(3n) .caw-feat-icon{background:#fef3c7;border-color:rgba(180,83,9,.3)}

/* FAQ (native details/summary, no script) */
#sgw .caw-faq{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px;text-align:left}
#sgw .caw-faq-item{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:0 22px}
#sgw .caw-faq-q{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-size:17px;font-weight:700;color:var(--text)}
#sgw .caw-faq-q::-webkit-details-marker{display:none}
#sgw .caw-faq-q::after{content:'+';font-size:22px;font-weight:600;color:var(--blue2);flex:none}
#sgw .caw-faq-item[open] .caw-faq-q::after{content:'\2212'}
#sgw .caw-faq-q:focus-visible{outline:2px solid var(--blue3);outline-offset:2px;border-radius:8px}
#sgw .caw-faq-a{margin:0 0 14px;font-size:15px;line-height:1.7;color:var(--text2)}
#sgw .caw-faq-a:last-child{margin-bottom:22px}
#sgw .caw-faq-a a{color:var(--blue2);text-decoration:underline}

/* How it works */
#sgw .caw-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;text-align:left}
#sgw .caw-step{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:26px 22px}
#sgw .caw-step-num{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#2563eb;color:#fff;font-weight:800;margin-bottom:14px}
#sgw .caw-step-title{font-size:18px;font-weight:800;color:var(--text);margin:0 0 8px}
#sgw .caw-step-desc{font-size:14px;font-weight:500;line-height:1.55;color:var(--text2);margin:0}

/* Closing box */
#sgw .caw-cta{margin:88px 0 40px;padding:48px 24px 12px;background:var(--card);border:1px solid var(--border);border-radius:24px}
#sgw .caw-cta .caw-start{margin-bottom:24px}
#sgw .caw-cta .caw-sec-title{font-size:clamp(24px,3.4vw,34px)}

/* Footer */
#sgw .caw-foot{display:grid;grid-template-columns:1.4fr 1fr 1.3fr 1fr;gap:32px;margin:24px 0 8px;padding:40px 0 0;border-top:1px solid var(--border);text-align:left}
#sgw .caw-foot-logo{height:40px;width:auto;margin-bottom:14px}
#sgw .caw-foot-logo-dark{display:none}
[data-theme='dark'] #sgw .caw-foot-logo-light{display:none}
[data-theme='dark'] #sgw .caw-foot-logo-dark{display:block}
#sgw .caw-foot-about{margin:0;font-size:14px;line-height:1.6;color:var(--text2);max-width:300px}
#sgw .caw-foot-h{margin:0 0 12px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text3)}
#sgw .caw-foot-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
#sgw .caw-foot-list a,#sgw .caw-foot-base a{color:var(--text2);font-size:14px;font-weight:500;text-decoration:none}
#sgw .caw-foot-list a:hover,#sgw .caw-foot-base a:hover{color:var(--blue2);text-decoration:underline}
#sgw .caw-foot-base{grid-column:1/-1;margin:8px 0 0;padding-top:20px;border-top:1px solid var(--border);font-size:13px;color:var(--text3);text-align:center}

@media(max-width:820px){
  #sgw .caw-feats{grid-template-columns:repeat(2,1fr)}
  #sgw .caw-steps{grid-template-columns:repeat(2,1fr)}
  #sgw .caw-foot{grid-template-columns:1fr 1fr}
  #sgw .caw-foot-brand{grid-column:1/-1}
}
@media(max-width:680px){#sgw{padding-top:104px}}
@media(max-width:540px){
  #sgw .caw-feats{grid-template-columns:1fr}
  #sgw .caw-hl{padding:4px 14px}
  #sgw .caw-steps{grid-template-columns:1fr}
  #sgw .caw-sec-label{margin-top:64px}
  #sgw .caw-foot{grid-template-columns:1fr}
}

/* Screens 2 and 3: running and result (same card as the Combined Audit's running screen) */
#sgw .sgw-hidden{display:none!important}
#sgw #sgw-s2,#sgw #sgw-s3{max-width:780px}
#sgw .caw-inner-run{text-align:center;background:var(--card);border:1px solid var(--border);border-radius:24px;padding:40px 44px;box-shadow:0 20px 50px rgba(30,58,138,.08)}
#sgw .caw-inner-run .caw-logo-img{height:44px}
#sgw .caw-spinner svg{width:64px;height:64px;animation:sgw-spin 1s linear infinite;margin-bottom:20px}
#sgw .caw-spinner circle{stroke:#3b82f6;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:60;animation:sgw-dash 1.5s ease-in-out infinite}
@keyframes sgw-spin{to{transform:rotate(360deg)}}
@keyframes sgw-dash{0%{stroke-dashoffset:80}50%{stroke-dashoffset:20}100%{stroke-dashoffset:80}}
@media(prefers-reduced-motion:reduce){#sgw .caw-spinner svg,#sgw .caw-spinner circle{animation:none}}
#sgw .caw-run-title{font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--text);margin:0 0 12px}
#sgw .caw-run-title:focus{outline:none}
#sgw .caw-run-current{font-size:14px;font-weight:600;color:var(--blue2);margin:0 0 24px;min-height:20px;word-break:break-all;font-family:'JetBrains Mono',ui-monospace,monospace}
#sgw .caw-run-hint{font-size:13px;color:var(--text2);margin:0 0 20px;line-height:1.6}
#sgw .caw-done-icon{display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;font-size:44px;line-height:1;border-radius:50%;background:#dcfce7;color:#16a34a;border:1px solid var(--border);margin-bottom:20px}
#sgw .caw-done-icon.sgw-icon-fail{background:#fef2f2;color:#b91c1c}
#sgw .sgw-types-h{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text3)}
#sgw .sgw-types{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
#sgw .sgw-types li{padding:5px 14px;border-radius:999px;background:var(--bg3);border:1px solid var(--border);color:var(--blue2);font-size:13px;font-weight:700}
[data-theme='dark'] #sgw .sgw-types li{color:#7cb0ff}
#sgw .sgw-types b{color:var(--text);margin-left:4px}
#sgw .sgw-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:0 0 18px}
#sgw .sgw-actions>button{flex:1 1 200px}
#sgw .sgw-btn2{border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--card);color:var(--blue2);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
#sgw .sgw-btn2:hover{border-color:var(--blue3);background:var(--bg2)}
#sgw .sgw-btn2:focus-visible{outline:2px solid var(--blue3);outline-offset:2px}
[data-theme='dark'] #sgw .sgw-btn2{color:#7cb0ff}
#sgw .sgw-fail-msg{margin:0 0 20px;padding:14px 16px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-size:15px;font-weight:600;line-height:1.5}
[data-theme='dark'] #sgw .sgw-fail-msg{background:rgba(248,113,113,.12);color:#f87171}
@media(max-width:540px){#sgw .caw-inner-run{padding:28px 20px}#sgw .caw-run-title{font-size:24px}}
/* Phone: smaller hint text so "website.com or website.com/page" fits the URL box */
@media(max-width:540px){#sgw .caw-start-url::placeholder{font-size:15px}}
/* Result screen: Schema Debugger reports and the free-schema code */
/* Schema Debugger output copied into the wizard: the page's own Debugger colours and font inside this box, so it looks as it does on the Debugger tab */
#sgw .sgw-findings{margin:0 0 24px;text-align:left;font-family:'Lato',sans-serif;line-height:normal;--bg:#f8fafc;--bg2:#ffffff;--bg3:#f1f5f9;--card:#ffffff;--border:#94a3b8;--text:#0f172a;--text2:#475569;--text3:#475569;color:var(--text)}
[data-theme='dark'] #sgw .sgw-findings{--bg:#0b1220;--bg2:#111a2e;--bg3:#16233d;--card:#111a2e;--border:#2a3a57;--text:#e2e8f0;--text2:#a3b2cc;--text3:#8195b3}
#sgw .sgw-findings h2,#sgw .sgw-findings h3{letter-spacing:normal;line-height:normal}
#sgw .sgw-find-none{margin:0;padding:16px 18px;border:1px solid var(--border);border-radius:14px;font-family:'Outfit',system-ui,sans-serif;font-size:15px;font-weight:600;color:var(--text2)}
/* Result screen: "This is the free schema" notice */
#sgw .sgw-free-note{margin:0 0 24px;padding:18px 20px;text-align:left;background:#fef3c7;border:1px solid rgba(180,83,9,.3);border-radius:14px;font-size:14px;line-height:1.6;color:#78350f}
#sgw .sgw-free-note p{margin:0 0 10px}
#sgw .sgw-free-note strong{color:#78350f}
#sgw .sgw-free-note .sgw-free-h{margin:0 0 6px;font-weight:700}
#sgw .sgw-free-note ul{margin:0 0 16px;padding-left:20px}
#sgw .sgw-free-note li{margin:0 0 4px}
#sgw .sgw-free-note .sgw-btn2{width:100%;background:#fff}
[data-theme='dark'] #sgw .sgw-free-note{background:rgba(251,191,36,.1);border-color:rgba(251,191,36,.35);color:#fde68a}
[data-theme='dark'] #sgw .sgw-free-note strong{color:#fde68a}
[data-theme='dark'] #sgw .sgw-free-note .sgw-btn2{background:var(--card)}
/* Running screen: the three steps */
#sgw .sgw-run-steps{list-style:none;margin:0 auto 20px;padding:0;max-width:340px;text-align:left;display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600;color:var(--text3)}
#sgw .sgw-run-steps li{position:relative;padding-left:30px}
#sgw .sgw-run-steps li::before{content:'';position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;border:2px solid var(--border)}
#sgw .sgw-run-steps li.is-run{color:var(--text)}
#sgw .sgw-run-steps li.is-run::before{border-color:#3b82f6;border-top-color:transparent;animation:sgw-spin 1s linear infinite}
#sgw .sgw-run-steps li.is-done{color:#15803d}
#sgw .sgw-run-steps li.is-done::before{content:'\2713';border-color:#16a34a;background:#16a34a;color:#fff;font-size:11px;line-height:14px;text-align:center}
[data-theme='dark'] #sgw .sgw-run-steps li.is-done{color:#4ade80}
@media(prefers-reduced-motion:reduce){#sgw .sgw-run-steps li.is-run::before{animation:none}}
/* Result screen: score comparison and the two Debugger reports side by side */
#sgw #sgw-s3{max-width:1040px}
#sgw .sgw-compare{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 16px}
#sgw .sgw-score{display:flex;flex-direction:column;gap:4px;padding:16px;background:var(--bg2);border:1px solid var(--border);border-radius:14px}
#sgw .sgw-score-lab{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text3)}
#sgw .sgw-score-num{font-size:28px;font-weight:800;color:var(--text)}
#sgw .sgw-reports{display:grid;grid-template-columns:1fr;gap:16px;margin:0 0 24px;text-align:left}
#sgw .sgw-report{min-width:0}
#sgw .sgw-report-h{margin:0 0 8px;font-size:16px;font-weight:800;color:var(--text)}
#sgw .sgw-report-body{margin:0;padding:4px;border:1px solid var(--border);border-radius:14px}
/* Yellow box: how many issues the Debugger found in their schema */
#sgw .sgw-free-note .sgw-free-issues{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid rgba(180,83,9,.3);font-size:15px}
[data-theme='dark'] #sgw .sgw-free-note .sgw-free-issues{border-bottom-color:rgba(251,191,36,.35)}
/* Yellow box: full-generator button + price line; with issues they sit directly under the statement */
#sgw .sgw-full-wrap{margin:0}
#sgw .sgw-free-note .sgw-price-note{margin:10px 0 0;font-weight:700;text-align:center}
#sgw .sgw-free-note.sgw-has-issues{display:flex;flex-direction:column}
#sgw .sgw-free-note.sgw-has-issues>*{order:2}
#sgw .sgw-free-note.sgw-has-issues>.sgw-free-issues{order:0}
#sgw .sgw-free-note.sgw-has-issues>.sgw-full-wrap{order:1;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid rgba(180,83,9,.3)}
[data-theme='dark'] #sgw .sgw-free-note.sgw-has-issues>.sgw-full-wrap{border-bottom-color:rgba(251,191,36,.35)}
/* Yellow box: lines under the price line (guarantee, FAQ tip) */
#sgw .sgw-free-note .sgw-price-sub{margin:8px 0 0;text-align:center}
