@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* Brand palette — locked in with the "SEORankReport.com  AUDIT. SCORE. EXECUTE."
   permanent logo. Any color change here reprints across every page. */
:root {
  --bg: #FFFFFF;          /* Main background */
  --bg-soft: #E7EEFF;     /* Soft blue — alternate sections */
  --card: #FFFFFF;
  --ink: #0D1526;         /* Deep Navy — headers, footer, primary text */
  --muted: #5F6B7A;       /* Slate Gray — secondary text */
  --line: #D9E1EC;        /* Light Gray — borders */
  --blue: #0E5FFF;        /* Royal Blue — primary buttons, links */
  --blue-dark: #0847CC;   /* Button hover */
  --amber: #FFB000;       /* Warning / medium score */
  --green: #17B26A;       /* Success / high score */
  --red: #E5484D;         /* Error / poor score */
  /* Text-safe variants. The bright brand colours above are fine for gauge arcs,
     borders and fills (3:1 non-text) but every one of them FAILS 4.5:1 as text:
     green 2.76, amber 1.83, red 3.91 on white. Use these whenever the colour is
     carrying words. Measured: 5.39 / 6.92 / 6.57 on white. */
  --green-text: #0F7A46;
  --amber-text: #7A5200;
  --red-text: #B42318;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; display: block; }
@media (max-width: 640px) { .logo img { height: 40px; } }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font: 600 15px 'Inter'; padding: 12px 22px; border-radius: 10px;
  background: var(--blue); color: #fff; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0 64px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lede { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.hero .cta-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font: 600 12px 'Inter'; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: #E7EEFF; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* Gauge (signature element) */
.gauge-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: 0 12px 40px rgba(13,21,38,.08);
}
.gauge-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gauge-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.price { font-family: 'Sora'; font-weight: 800; font-size: 32px; margin: 10px 0 2px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.badge {
  display: inline-block; font: 600 11px 'Inter'; padding: 3px 10px; border-radius: 999px;
}
.badge.blue { background: #E7EEFF; color: var(--blue); }
.badge.green { background: #E4F7EE; color: var(--green-text); }
.badge.amber { background: #FFF4DC; color: var(--amber-text); }
.badge.red { background: #FDE8E9; color: var(--red-text); }
.badge.gray { background: #EEF1F6; color: var(--muted); }

section { padding: 42px 0; }
section h2 { font-size: 28px; margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 7px 0 7px 30px; position: relative; font-size: 14.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700;
}

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 15px 'Inter'; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }

/* ---- Accessibility -------------------------------------------------------
   Skip link: WCAG 2.4.1 (Level A). Every page previously forced keyboard and
   screen-reader users through the whole nav before reaching content, and this is
   the single most common trigger in web-accessibility demand letters because any
   automated scanner flags it in seconds. Off-screen until focused, then visible. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font: 600 14px 'Inter'; text-decoration: none;
}
.skip-link:focus { left: 0; }
/* <main tabindex="-1"> is the skip target; it must not draw a ring when focused
   programmatically, only the skip link itself should be visibly focused. */
main:focus { outline: none; }

/* Native <dialog> backdrop — the dialog itself is transparent, so the dim overlay
   comes from ::backdrop. Only shows for showModal(), never a non-modal open. */
dialog::backdrop { background: rgba(15, 22, 40, .55); }

/* Visually hidden but available to screen readers — for aria-live announcements
   and off-screen labels. Not display:none, which would hide it from AT too. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
dialog[open] { animation: dlg-in .12s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* A visible focus indicator on every interactive control. The rule above clears
   the default outline on inputs and relies on border-color, which inline `border:`
   shorthand can outrank — so state it explicitly for keyboard users only
   (:focus-visible, so it never appears on mouse click). */
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.auth-box { max-width: 420px; margin: 60px auto; }
.error { color: var(--red-text); font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.notice { background: #E7EEFF; border: 1px solid #C9DAFF; color: var(--blue-dark); padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* Option chips (add-ons, formats) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px; cursor: pointer;
  background: #fff; font: 500 14px 'Inter'; transition: all .12s; user-select: none;
}
.chip.on { border-color: var(--blue); background: #E7EEFF; color: var(--blue-dark); font-weight: 600; }
.chip small { display: block; color: var(--muted); font-weight: 500; }
.chip.on small { color: var(--blue-dark); }

/* Wizard */
.wizard-progress { display: flex; gap: 6px; margin: 18px 0; }
.wizard-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.wizard-progress i.done { background: var(--blue); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: #FAFBFE; }

/* Report rows */
.report-row { display: flex; align-items: center; gap: 18px; }
.score-pill {
  font-family: 'Sora'; font-weight: 800; font-size: 20px; min-width: 74px; text-align: center;
  padding: 12px 0; border-radius: 12px;
}
.footer { padding: 40px 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }

/* Social sign-in buttons (Google / email / Apple / Facebook) */
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.sso-btn:hover { background: var(--bg-soft); border-color: var(--blue); }
.sso-btn:active { transform: translateY(1px); }
.sso-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sso-btn svg { flex-shrink: 0; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
}
