/* MJS Dashboard: the client view. MJS Websites style: ink, white, cyan; Anton headings, Inter body. */
@font-face { font-family: "Anton"; src: url("fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #111111; --white: #ffffff; --accent: #00cfff; --grey: #6b6b6b; --tint: #f2f2f0; --error: #e5484d;
  --line: rgba(17, 17, 17, 0.16);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.5 var(--body); color: var(--ink); background: var(--white); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.accent { color: var(--accent); }

/* ---------- Sign-in screen ---------- */
.signin { min-height: 100vh; min-height: 100dvh; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; padding: 20px 16px; }
.signin__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.signin__logo { display: block; height: 34px; width: auto; }
.signin__top .label { color: rgba(255,255,255,.6); }
.signin__main { flex: 1; display: grid; gap: 40px; align-content: center; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 0; }
.signin__pitch h1 { font: 400 clamp(3.25rem, 1.6rem + 6.6vw, 7rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 14px 0 22px; }
.signin__pitch p { margin: 0; max-width: 30em; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(255,255,255,.78); }
.signin__pitch .label { color: var(--accent); }
.signin__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.signin__points li { display: flex; gap: 12px; align-items: baseline; color: rgba(255,255,255,.9); }
.signin__points li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--accent); transform: translateY(-4px); }

.card { background: var(--white); color: var(--ink); border-radius: 4px; padding: 32px 24px; width: 100%; max-width: 440px; justify-self: start; }
.card h2 { font: 400 2rem/1.05 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.card .sub { margin: 0 0 24px; color: var(--grey); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); transition: border-color .15s var(--ease); }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0, 207, 255, .35); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 22px; font-size: .9375rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 52px; padding: 14px 24px; width: 100%;
  border: 2px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--ink);
  font: 600 1rem/1.2 var(--body); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.btn svg { transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.notice { padding: 12px 14px; border-radius: 2px; margin-bottom: 20px; font-size: .9375rem; }
.notice--error { background: #fdecec; color: #a3191e; border-left: 3px solid var(--error); }
.notice--ok { background: #e6f9fe; color: var(--ink); border-left: 3px solid var(--accent); }

.help { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; text-decoration: none; }
.help svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #25d366; color: var(--white); }
.help b { display: block; }
.help span { color: var(--grey); }
.help:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.signin__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .8125rem; color: rgba(255,255,255,.5); max-width: 1180px; width: 100%; margin: 0 auto; }
.signin__foot a { color: rgba(255,255,255,.75); }

@media (min-width: 900px) {
  .signin { padding: 28px 40px; }
  .signin__logo { height: 40px; }
  .signin__main { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
  .card { padding: 40px 40px 32px; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Phones: get the sign-in card on screen quickly; the selling points can wait for a bigger screen. */
@media (max-width: 599px) {
  .signin__main { padding: 28px 0 32px; gap: 28px; align-content: start; }
  .signin__pitch h1 { margin: 10px 0 14px; }
  .signin__points, .signin__top .label { display: none; }
  .card { padding: 26px 20px; }
}

/* ---------- sign-in extras ---------- */
.hint { margin: 16px 0 0; font-size: .875rem; color: var(--grey); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.field input.code { font-size: 1.5rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.card p { margin: 0 0 16px; }

/* ---------- signed-in pages ---------- */
body.app { background: var(--tint); min-height: 100vh; display: flex; flex-direction: column; }
.bar { background: var(--ink); color: var(--white); }
.bar__in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bar__logo { height: 30px; display: block; }
.bar__nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: .9375rem; font-weight: 600; }
.bar__nav a { color: rgba(255,255,255,.75); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.bar__nav a:hover, .bar__nav a[aria-current] { color: var(--white); border-bottom-color: var(--accent); }
.page { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
.hero { margin-bottom: 28px; }
.hero .label { color: var(--grey); }
.hero h1 { font: 400 clamp(2.5rem, 1.8rem + 3vw, 4rem)/1 var(--display); text-transform: uppercase; margin: 8px 0 10px; }
.lead { margin: 0; font-size: 1.125rem; color: var(--grey); max-width: 40em; }
.panel { background: var(--white); border-radius: 4px; padding: 24px 20px; margin-bottom: 20px; }
.panel h2 { font: 400 1.5rem/1.1 var(--display); text-transform: uppercase; margin: 0 0 16px; }
.panel > p:last-child { margin-bottom: 0; }
.muted { color: var(--grey); } .small { font-size: .875rem; }
.site__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.site__head h2 { margin: 0; }
.soon { background: var(--tint); border-left: 3px solid var(--accent); padding: 16px; border-radius: 2px; }
.soon p { margin: 0 0 6px; } .soon p:last-child { margin: 0; }
.page > .notice { margin-bottom: 20px; }
.page-foot { text-align: center; font-size: .8125rem; color: var(--grey); padding: 20px 16px 28px; }
.page-foot a { color: var(--ink); }

.grid-form { display: grid; gap: 0 20px; }
.grid-form .field { margin-bottom: 16px; }
.btn--auto { width: auto; }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: .875rem; width: auto; }
.btn--ghost { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--danger { background: var(--white); border-color: var(--error); color: #a3191e; }
.btn--danger:hover { background: var(--error); border-color: var(--error); color: var(--white); }
.client { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.client:first-of-type { border-top: 0; padding-top: 0; }
.client__who { display: flex; flex-direction: column; gap: 2px; }
.client__sites .field { margin-bottom: 10px; }
.client__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) {
  .bar__in { padding: 16px 24px; }
  .page { padding: 44px 24px 64px; }
  .panel { padding: 32px; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .grid-form .wide { grid-column: 1 / -1; }
  .client { grid-template-columns: 260px 1fr; gap: 24px; }
}
.qr { width: 200px; height: 200px; margin: 0 0 14px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.team-invite { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- site view: rankings + health ---------- */
.site-block { margin-bottom: 40px; }
.site-block .site__head { margin-bottom: 14px; }
.site-block .site__head h2 { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; }
.panel__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.panel__title h3 { font: 400 1.375rem/1.1 var(--display); text-transform: uppercase; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
.stats div { background: var(--tint); border-radius: 4px; padding: 14px; }
.stats b { display: block; font: 400 2.25rem/1 var(--display); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stats b small { font-size: 1.25rem; color: var(--grey); }
.stats b.up { color: #12805c; } .stats b.down { color: #b4232a; }
.stats span { font-size: .875rem; color: var(--grey); line-height: 1.35; display: block; }
.kws { list-style: none; margin: 0; padding: 0; }
.kw { padding: 14px 0; border-top: 1px solid var(--line); }
.kw__pos { font: 400 2rem/1 var(--display); text-align: center; background: var(--tint); border-radius: 4px; padding: 12px 0; font-variant-numeric: tabular-nums; }
.kw__pos small { font-size: 1rem; color: var(--grey); margin-right: 1px; }
.kw__pos--top { background: var(--ink); color: var(--white); }
.kw__pos--top small { color: var(--accent); }
.kw__none { font-size: 1.125rem; color: var(--grey); }
.kw__main b { display: block; font-weight: 600; margin-bottom: 6px; }
.kw__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kw__trend { display: none; }
.move { font-size: .8125rem; font-weight: 700; padding: 3px 8px; border-radius: 2px; }
.move--up { background: #e3f6ee; color: #0d6b4c; }
.move--down { background: #fdecec; color: #a3191e; }
.move--same { background: var(--tint); color: var(--grey); }
.pill { font-size: .8125rem; font-weight: 600; padding: 3px 8px; border-radius: 2px; background: #e6f9fe; color: var(--ink); }
.pill--maps { background: var(--accent); }
.maps-win { display: flex; gap: 14px; align-items: flex-start; margin: -8px 0 20px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 4px; background: #e6f9fe; }
.maps-win__pin { font-size: 1.5rem; line-height: 1; }
.maps-win b { display: block; margin-bottom: 4px; }
.maps-win span { font-size: .9375rem; color: var(--grey); }
.above--maps { margin-top: 14px; }
.above--maps li.is-me b { color: var(--ink); }
.kw-edit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.kw-edit summary { cursor: pointer; font-weight: 600; }
.kw-edit form { display: grid; gap: 10px; margin-top: 12px; max-width: 560px; }
.kw-edit textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 2px; }
.kw-edit .field span { display: block; font-size: .875rem; margin-bottom: 6px; }
.pill--soft { background: var(--tint); color: var(--grey); font-weight: 500; }
.note { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--grey); }
.health { display: grid; gap: 10px; }
.tick { position: relative; padding: 14px 14px 14px 48px; background: var(--tint); border-radius: 4px; }
.tick::before { content: "✓"; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; background: #12805c; color: var(--white); }
.tick--wait::before { content: "…"; background: #b98900; }
.tick--bad::before { content: "!"; background: var(--error); }
.tick b { display: block; }
.tick span { font-size: .875rem; color: var(--grey); }
.updates { margin-top: 18px; }
.updates h4 { margin: 0 0 8px; font-size: .9375rem; }
.updates ul { list-style: none; margin: 0; padding: 0; }
.updates li { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.updates time { flex: 0 0 52px; font-weight: 600; }
.upsell { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px; border: 2px solid var(--accent); border-radius: 4px; }
.upsell b { display: block; margin-bottom: 4px; }
.upsell span { font-size: .9375rem; color: var(--grey); }
.bar__exit { color: var(--accent) !important; }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .kw__trend { display: block; text-align: right; }
  .health { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .upsell > div { flex: 1; min-width: 280px; }
}

a.btn { text-decoration: none; }
.sugs { list-style: none; margin: 0; padding: 0; }
.sug { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.sug:first-child { border-top: 0; padding-top: 0; }
.sug__text b { display: block; margin-bottom: 4px; }
.sug__text span { font-size: .9375rem; color: var(--grey); }
.sug__act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sug__price { font: 400 1.25rem/1 var(--display); }
@media (min-width: 760px) {
  .sug { grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
  .sug__act { justify-content: flex-end; }
}
.field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; }
.field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0, 207, 255, .35); }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; flex: 1; min-width: 220px; }
.preview-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; background: #e6f9fe; border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 2px; margin-bottom: 24px; font-size: .9375rem; }
.grid-form .check { margin-bottom: 16px; }

/* ---------- growth, who's above, action plans, competitors ---------- */
.kw { display: block; }
.kw__row { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: center; }
.kw__page { display: block; font-size: .8125rem; color: var(--grey); margin: -2px 0 6px; overflow-wrap: anywhere; }
.kw__page a { color: inherit; font-weight: 600; }
.kw__vol { display: block; font-size: .8125rem; color: var(--grey); margin: -2px 0 6px; }
.kw__more { margin: 10px 0 0 78px; }
.kw__more summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.kw__more summary::-webkit-details-marker { display: none; }
.kw__more summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .875rem; line-height: 1; }
.kw__more[open] summary::before { content: "–"; }
.above, .plan { margin-top: 12px; padding: 14px; background: var(--tint); border-radius: 4px; }
.above .label, .plan .label, .locked__content .label { color: var(--grey); display: block; margin-bottom: 8px; }
.above ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.above li { font-size: .9375rem; }
.above__pos { display: inline-block; min-width: 34px; font-weight: 700; }
.plan__step { display: grid; grid-template-columns: 28px 1fr; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.plan__step:first-of-type { border-top: 0; padding-top: 4px; }
.plan__n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .875rem; }
.plan__step b { display: block; margin-bottom: 2px; }
.plan__step span:not(.plan__n):not(.sug__price) { font-size: .9375rem; color: var(--grey); }
.plan__act { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ask { margin: 0; display: inline; }
.locked { position: relative; overflow: hidden; }
.locked .locked__content { filter: blur(5px); opacity: .55; user-select: none; pointer-events: none; }
.locked__cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px; }
.locked__cta b { font-size: 1.0625rem; max-width: 28em; }
.locked__cta span { font-size: .9375rem; color: var(--grey); max-width: 30em; margin-bottom: 6px; }
.kw__more .locked { margin-top: 12px; background: var(--tint); border-radius: 4px; padding: 14px; min-height: 230px; }
.locked--panel { min-height: 260px; }
.vs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
.vs th, .vs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vs th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 600; }
.vs td:first-child { white-space: normal; }
.vs__you { background: #e6f9fe; font-weight: 700; }
.vs__ahead { color: #a3191e; font-weight: 700; }
.vs__reviews td { border-bottom: 0; }
.stars { color: #b98900; font-weight: 700; }
.upsell--growth { background: var(--ink); color: var(--white); border-color: var(--ink); margin-top: 0; }
.upsell--growth .label { color: var(--accent); display: block; margin-bottom: 6px; }
.upsell--growth span { color: rgba(255,255,255,.75); }
.upsell--growth .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
@media (min-width: 760px) {
  .kw__row { grid-template-columns: 72px 1fr 130px; gap: 18px; }
  .kw__more { margin-left: 90px; }
  .plan__step { grid-template-columns: 28px 1fr auto; }
  .plan__act { grid-column: auto; justify-content: flex-end; }
  .kw__more .locked { min-height: 200px; }
}
.mail-preview { background: var(--tint); padding: 16px; border-radius: 4px; overflow-x: auto; }
