/* ============================================================
   Omixa site layer: the simple, remove.bg-style experience.
   Loaded after app.css. Everything here is additive/overriding,
   admin and error pages keep working off app.css.
   Look: one big upload card, soft violet glow, ink pill buttons with a violet -> indigo edge,
   deep-indigo "quality" band, rounded FAQ cards. All colours come from the logo (see app.css).
   ============================================================ */

:root {
  /* Aliases onto the brand tokens in app.css (sampled from the logo). No colour literals live here. */
  --g-purple: var(--omixa-violet);
  --ink: var(--omixa-ink);
  --page: var(--omixa-canvas-soft);
  --edge: var(--omixa-gradient);
  --bg-page: var(--page);
}

/* ---------- Typography: Urbanist for ALL frontend text ----------
   Form controls and <summary>/<code>/<pre> do not inherit the page font by default, which is how
   system fonts leaked into inputs, buttons and tables. One rule, no exceptions. */
html, body, button, input, select, textarea, optgroup, option, summary, label, table, th, td,
code, pre, kbd, samp, small, .btn, .tab, .pill, .badge, .cleaning-summary-text {
  font-family: var(--font-sans);
}
code, pre, kbd, samp { font-variant-numeric: tabular-nums; }
input, select, textarea, button { font-size: inherit; }
::placeholder { font-family: var(--font-sans); }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(165,84,247,.22), transparent 70%),
    radial-gradient(45% 35% at 0% 22%, rgba(165,84,247,.16), transparent 70%),
    radial-gradient(50% 35% at 100% 34%, rgba(104,52,214,.16), transparent 70%),
    var(--page);
  background-attachment: fixed;
  letter-spacing: .005em;
}
.app-main { padding: 0; }
.app-main > .container { padding-top: 32px; padding-bottom: 64px; }

/* ---------- Nav ---------- */
.topnav {
  height: 64px; padding: 0 20px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14,5,36,.06);
}
.topnav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--omixa-indigo); letter-spacing: -.02em; }
.topnav .brand:hover { text-decoration: none; }
.topnav .brand img { height: 36px; width: 36px; border-radius: 10px; display: block; }
.topnav-links { display: flex; align-items: center; gap: 2px; }
.topnav-links a { padding: 8px 14px; font-size: .92rem; font-weight: 600; color: var(--gray-600); border-radius: 999px; }
.topnav-links a:hover { background: var(--gray-100); color: var(--ink); text-decoration: none; }
.topnav-links a.nav-cta { margin-left: 8px; background: var(--ink); color: var(--white); padding: 9px 18px; }
.topnav-links a.nav-cta:hover { background: var(--omixa-indigo-deep); color: var(--white); }

.hamburger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--gray-600); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  /* Always laid out, hidden with visibility/opacity so the menu can slide in AND out (motion.css).
     visibility:hidden also removes the closed menu's links from the tab order and the screen reader tree. */
  .topnav-links {
    position: fixed; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px 14px 16px; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    visibility: hidden; opacity: 0; pointer-events: none;
  }
  .topnav-links.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .topnav-links a { padding: 14px 16px; font-size: 1rem; border-radius: 14px; }
  .topnav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero-wrap { max-width: 720px; margin: 0 auto; padding: 56px 16px 28px; }
.hero-copy { text-align: center; margin-bottom: 30px; }
.hero-copy h1 { font-size: clamp(2.3rem, 8.2vw, 3.7rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.hero-copy .lead { font-size: clamp(1.02rem, 3.6vw, 1.2rem); color: var(--gray-600); max-width: 460px; margin: 0 auto; }
.grad-text { background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Tool card ---------- */
.tool-card {
  padding: 14px; border-radius: 30px;
  background: linear-gradient(135deg, rgba(165,84,247,.22) 0%, rgba(244,238,253,.92) 45%, rgba(104,52,214,.20) 100%);
  box-shadow: 0 18px 50px rgba(56,21,147,.12), inset 0 0 0 1px rgba(255,255,255,.7);
}
.upload-card, .work-card {
  background: rgba(255,255,255,.72); border-radius: 22px; padding: 26px 16px 22px;
  box-shadow: 0 2px 10px rgba(56,21,147,.06);
}
.work-card { padding: 22px 18px; }

/* Black pill with the purple->pink->lime edge */
.btn-upload, .btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.12rem; color: var(--white); text-decoration: none; cursor: pointer;
  border: 4px solid transparent; border-radius: 22px;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--edge) border-box;
  padding: 16px 40px; transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
}
.btn-upload:hover, .btn-main:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(165,84,247,.35); text-decoration: none; color: var(--white); }
.btn-main { width: 100%; padding: 17px 24px; }
.btn-main:disabled { opacity: .45; cursor: not-allowed; }

.tool-card .dropzone { border: 2px dashed transparent; background: transparent; padding: 34px 12px 26px; border-radius: 18px; text-align: center; cursor: pointer; transition: all .15s var(--ease); }
.tool-card .dropzone:hover { background: transparent; border-color: transparent; }
.tool-card .dropzone:hover .btn-upload { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(165,84,247,.35); }
.tool-card .dropzone:focus-visible { outline: 3px solid var(--g-purple); outline-offset: 2px; }
.tool-card .dropzone.drag { border-color: var(--g-purple); background: rgba(165,84,247,.08); }
.drop-or { margin: 20px 0 6px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.drop-sub { margin: 0; font-size: .92rem; color: var(--gray-600); }

.samples { text-align: center; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(14,5,36,.06); }
.samples-title { margin: 0 0 14px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.samples-row { display: flex; justify-content: center; gap: 10px; }
.sample {
  flex: 1 1 0; min-width: 0; max-width: 112px; padding: 14px 4px 11px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid rgba(14,5,36,.07); border-radius: 18px; cursor: pointer; font-family: inherit;
  font-size: .8rem; font-weight: 700; color: var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.sample:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(56,21,147,.14); }
.sample svg { width: 30px; height: 30px; fill: none; stroke: var(--g-purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Working state ---------- */
body.has-file .hero-copy, body.has-file .upload-card, body.has-file .marketing { display: none; }
body.has-file .hero-wrap { padding-top: 32px; }

.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border-radius: 16px; margin-bottom: 16px; }
.file-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--omixa-lavender-light); display: grid; place-items: center; }
.file-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--omixa-indigo); stroke-width: 1.8; stroke-linejoin: round; }
.work-card .file-chip { display: block; flex: 1; min-width: 0; margin: 0; font-size: .92rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { flex: none; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 700; color: var(--omixa-indigo); padding: 8px 6px; border-radius: 8px; }
.link-btn:hover { background: var(--gray-100); }

.work-card .stepper { gap: 6px 14px; margin-bottom: 14px; justify-content: center; flex-wrap: wrap; flex-direction: row; }
.work-card .step { font-size: .78rem; }
.work-card .step .dot { width: 20px; height: 20px; font-size: .68rem; }
.work-card .step.active .dot { background: var(--g-purple); }

.work-card .stage { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 0; margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--gray-600); text-align: center; }
.work-card .stage:empty { display: none; }
.work-card .stage.active::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--gray-200); border-top-color: var(--g-purple); animation: spin .7s linear infinite; flex: none; }
.work-card .stage.error { color: var(--danger); background: var(--danger-bg); padding: 12px 14px; border-radius: 14px; }

[data-phase="done"] #reportCard, [data-phase="done"] #steps { display: none; }

.report-head { display: flex; align-items: center; gap: 16px; padding: 6px 2px 18px; }
.report-text h2 { font-size: 1.35rem; margin: 0 0 2px; letter-spacing: -.02em; }
.report-text p { margin: 0; font-size: .88rem; }
.score-badge { flex: none; width: 76px; height: 76px; flex-direction: column; line-height: 1; border-radius: 50%; border: 6px solid currentColor; font-size: 1.45rem; font-weight: 800; background: var(--white); }
.score-badge small { display: block; font-size: .7rem; font-weight: 700; margin-top: 3px; letter-spacing: .04em; }
.score-badge.good { background: var(--white); color: var(--success); }
.score-badge.warn { background: var(--white); color: var(--warning); }
.score-badge.bad  { background: var(--white); color: var(--danger); }
.score-badge span { display: flex; flex-direction: column; align-items: center; }

.main-actions { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 16px; }
.btn-ghost { background: transparent; border: 0; font-family: var(--font-sans); font-weight: 700; font-size: .98rem; color: var(--omixa-indigo); padding: 12px; border-radius: 14px; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,.7); }

/* Collapsible "advanced" blocks */
.fold { background: var(--white); border-radius: 16px; margin-top: 10px; border: 1px solid rgba(14,5,36,.05); }
.fold > summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: .95rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; border-radius: 16px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after, .faq-item > summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2.5px solid var(--g-purple); border-bottom: 2.5px solid var(--g-purple); transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s var(--ease); }
.fold[open] > summary::after, .faq-item[open] > summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.fold-body { padding: 2px 16px 16px; }
.group-label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); margin: 16px 0 8px; padding: 0; }
.group-label.safe { color: var(--success); }
.group-label.review { color: var(--warning); }

.work-card .rules-grid { grid-template-columns: 1fr; gap: 8px; }
.work-card .rule { border-radius: 14px; background: var(--gray-50); border-color: transparent; padding: 12px 14px; gap: 12px; align-items: flex-start; }
.work-card .rule span { display: flex; flex-direction: column; gap: 1px; }
.work-card .rule strong { font-size: .9rem; }
.work-card .rule em { font-style: normal; font-size: .78rem; color: var(--gray-600); }
.work-card .rule input, .work-card .rec-item input { accent-color: var(--g-purple); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.work-card .finding, .work-card .rec-item { background: var(--gray-50); border-radius: 14px; }
.work-card .rec-item.safe { border-left: 0; }
.resolve-select { margin-top: 8px; }

/* ---------- Results ---------- */
.done-head { text-align: center; padding: 6px 0 14px; }
.done-check { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--edge); }
.done-check svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-head h2 { font-size: 1.5rem; margin: 0 0 2px; letter-spacing: -.02em; }
.done-head p { margin: 0; }
.work-card .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.work-card .stats .score-compare { grid-column: 1 / -1; justify-content: center; background: var(--white); padding: 16px; gap: 20px; }
.work-card .stat { background: var(--white); border-radius: 16px; min-width: 0; padding: 14px 10px; }
.work-card .stat .n { color: var(--ink); }
.work-card .score-badge.small { width: 52px; height: 52px; font-size: 1rem; border-width: 4px; }
.work-card table { display: block; overflow-x: auto; }
.cleaning-summary-text { font-size: .76rem; }

/* ---------- Marketing sections ---------- */
.marketing { padding-bottom: 0; }
.m-section { max-width: 1040px; margin: 0 auto; padding: 64px 18px; }
.m-title { text-align: center; font-size: clamp(1.7rem, 6vw, 2.5rem); letter-spacing: -.025em; font-weight: 800; line-height: 1.2; margin: 0 0 36px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step3 { text-align: left; }
.step3-art { height: 190px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(165,84,247,.18), rgba(244,238,253,.92) 55%, rgba(104,52,214,.18)); }
.step3-art svg { width: 72px; height: 72px; padding: 20px; border-radius: 50%; background: var(--omixa-gradient); fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 8px 20px rgba(165,84,247,.4); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 5px 12px; font-size: .88rem; font-weight: 600; color: var(--gray-600); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--g-purple); }
.step3 h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.step3 p { margin: 0; font-size: .95rem; }

.quality { background: var(--omixa-gradient-deep); color: var(--white); padding: 72px 18px 80px; }
.quality-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.quality h2 { color: var(--white); font-size: clamp(1.8rem, 6.5vw, 2.6rem); letter-spacing: -.025em; margin: 0 0 12px; }
.q-sub { color: rgba(255,255,255,.82); font-size: 1.05rem; margin: 0 auto 24px; max-width: 460px; }
.q-hint { color: var(--omixa-violet-light); font-weight: 600; margin: 0 0 16px; }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .tabs { justify-content: center; } }
.tab { flex: none; font-family: inherit; font-size: 1rem; font-weight: 700; padding: 12px 22px; border-radius: 14px; background: transparent; color: rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.3); cursor: pointer; transition: all .15s var(--ease); }
.tab:hover { color: var(--white); border-color: rgba(255,255,255,.6); }
.tab.active { background: var(--omixa-violet); color: var(--white); border-color: var(--omixa-violet); }

.ba-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 26px; overflow: hidden; text-align: left; color: var(--ink); box-shadow: 0 20px 50px rgba(14,5,36,.35); border: 8px solid rgba(255,255,255,.35); background-clip: padding-box; }
.ba-col { padding: 18px 16px 20px; min-width: 0; }
.ba-before { background: var(--omixa-tint); border-right: 2px solid var(--white); }
.ba-label { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ba-before .ba-label { background: var(--danger-bg); color: var(--danger); }
.ba-after .ba-label { background: var(--success-bg); color: var(--success); }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ba-col li { font-size: .94rem; font-weight: 600; padding: 11px 12px; border-radius: 12px; background: var(--white); word-break: break-word; font-variant-numeric: tabular-nums; }
.ba-before li { color: var(--gray-600); }
.ba-after li { background: var(--success-bg); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { background: rgba(255,255,255,.75); border-radius: 22px; padding: 24px 22px; border: 1px solid rgba(14,5,36,.05); }
.trust-item strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.trust-item p { margin: 0; font-size: .95rem; }

.faq-card { max-width: 720px; margin: 0 auto; background: var(--omixa-tint); border-radius: 28px; padding: 36px 18px 22px; box-shadow: 0 6px 24px rgba(56,21,147,.06); }
.faq-card .m-title { font-size: clamp(1.6rem, 5.5vw, 2.1rem); margin-bottom: 24px; }
.faq-item { background: var(--white); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(56,21,147,.08); }
.faq-item > summary { list-style: none; cursor: pointer; padding: 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 20px 20px; font-size: .96rem; }

.cta { text-align: center; padding-bottom: 80px; }
.cta .m-title { margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--omixa-ink); color: var(--white); padding: 52px 24px 36px; margin-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--edge); }
.site-footer-inner { max-width: 1040px; margin: 0 auto; }
.brand-light { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: -.02em; }
.brand-light:hover { text-decoration: none; }
.brand-light img { width: 40px; height: 40px; border-radius: 11px; }
.footer-tag { color: rgba(255,255,255,.7); margin: 16px 0 0; font-size: .95rem; }
.footer-copy { color: rgba(255,255,255,.55); margin: 22px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; }
.app-footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .steps3, .trust-grid { grid-template-columns: 1fr; }
  .step3-art { height: 150px; }
  .m-section { padding: 48px 16px; }
}
@media (min-width: 640px) {
  .upload-card { padding: 40px 28px 28px; }
  .work-card { padding: 28px 26px; }
  .work-card .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card .stats { grid-template-columns: repeat(3, 1fr); }
  .main-actions { flex-direction: row; }
  .main-actions .btn-ghost { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Refinements ---------- */
.fold-inner { background: var(--gray-50); box-shadow: none; margin-top: 14px; }
.fold-inner > summary { font-size: .9rem; color: var(--gray-600); }
.fold-inner .group-label { display: none; }

/* Results: a short receipt-style list instead of a wall of tiles */
.work-card .stats { display: block; background: var(--white); border-radius: 18px; padding: 4px 18px; margin: 14px 0 6px; }
.work-card .stats .score-compare { display: flex; justify-content: center; background: none; border-bottom: 1px solid var(--gray-100); padding: 16px 0; border-radius: 0; }
.work-card .stat { display: flex; align-items: baseline; gap: 14px; background: none; border-radius: 0; padding: 11px 0; text-align: left; border-bottom: 1px solid var(--gray-100); }
.work-card .stat:last-child { border-bottom: 0; }
.work-card .stat .n { min-width: 46px; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.work-card .stat .l { margin: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--gray-800); font-weight: 600; }
.work-card .score-badge.small { width: 62px; height: 62px; font-size: 1.1rem; border-width: 5px; }
.work-card .score-badge.small small { font-size: .62rem; margin-top: 2px; }
.work-card .score-compare-item .l { margin-top: 6px; font-size: .78rem; }
.done-head { padding-bottom: 6px; }
.done-head + .main-actions { margin-top: 12px; }

@media (max-width: 480px) {
  /* Step tracker: dots only, label just for the current step */
  .work-card .stepper { flex-wrap: nowrap; gap: 10px; }
  .work-card .step:not(.active) { font-size: 0; gap: 0; }
  .work-card .step:not(.active) .dot { font-size: .68rem; }
}
@media (min-width: 640px) {
  .work-card .stats { display: block; grid-template-columns: none; }
}


/* =====================================================================
   Pro pages + mobile  (pricing, dashboard, batch, profile editor, session, admin)
   Written mobile-first for the pieces that were previously unstyled or fixed-width.
   ===================================================================== */

/* ---- small utilities that replace inline styles ---- */
.m-0 { margin: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.center { text-align: center; }
.mono-sm { font-size: 0.78rem; }
.inline-form { display: inline; }
.inline-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.inline-row > * { min-width: 0; }
.grow-1 { flex: 1 1 0; }
.grow-2 { flex: 2 1 0; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-narrow { width: 2.2rem; }
.cell-right { text-align: right; }
.delta { font-weight: 700; }
.delta-good { color: var(--success); }
.delta-bad { color: var(--danger); }

/* ---- pricing (these classes had no CSS before, so the page rendered as plain text) ---- */
.pricing-3 { grid-template-columns: repeat(3, 1fr); max-width: 1040px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; position: relative; }
.price-card h2 { font-size: 1.25rem; margin: 6px 0 0; }
.price-card .price { font-size: 2.6rem; font-weight: 800; line-height: 1.05; color: var(--omixa-indigo); margin: 4px 0; letter-spacing: -0.02em; }
.price-card .price span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; }
.price-card .badge { align-self: flex-start; }
.price-card.featured { border: 2px solid var(--omixa-violet); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--omixa-tint), var(--white) 38%); }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; right: 18px; background: var(--omixa-gradient); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-full); }
.price-list, .plain-list { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.price-list li { position: relative; padding: 7px 0 7px 26px; font-size: 0.92rem; line-height: 1.45; border-bottom: 1px solid var(--gray-100); }
.price-list li:last-child { border-bottom: 0; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--omixa-violet); border-bottom: 2px solid var(--omixa-violet); transform: rotate(-45deg); }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; overflow-wrap: anywhere; }
.plain-list li:last-child { border-bottom: 0; }

/* ---- tables: scroll sideways inside their card instead of breaking the page ---- */
.table-wrap, .card > table, .card > .table-wrap { max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th { text-align: left; }

/* ---- Pro layout polish ---- */
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap-sm { flex-wrap: wrap; }
.admin-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- safe areas: notched phones draw under the status bar / home indicator ---- */
.topnav { padding-top: env(safe-area-inset-top, 0px); }
.site-footer, .app-shell > footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.qc-fab { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.app-shell { min-height: 100vh; min-height: 100dvh; }

/* ---- tablet ---- */
@media (max-width: 960px) {
  .pricing-3 { grid-template-columns: 1fr; max-width: 520px; gap: 26px; }
  .price-card.featured { order: -1; }
}

/* ---- phone ---- */
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 16px; }
  .dash-header h1, .auth-card h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); line-height: 1.2; }
  .dash-header p { font-size: 0.95rem; }
  .card { padding: 16px; }

  /* 16px inputs stop iOS Safari zooming the page when a field is focused */
  input, select, textarea { font-size: 16px; min-height: 44px; width: 100%; }
  input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }

  /* thumb-sized targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 8px 14px; }
  .hamburger { min-width: 44px; min-height: 44px; }
  .btn-block, .cta-row .btn, .card-title-row .btn { width: 100%; justify-content: center; }
  .cta-row > *, .card-title-row > * { width: 100%; }

  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }

  /* profile editor rows stack instead of squeezing three inputs into 340px */
  .inline-row { flex-wrap: wrap; }
  .inline-row .grow-1, .inline-row .grow-2 { flex: 1 1 100%; }
  .inline-row .btn { flex: 0 0 auto; width: auto; }

  /* tables keep their columns and scroll within the card */
  .card > table, .work-card > table, .panel > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { padding: 10px 12px; }

  .price-card { padding: 22px 18px; }
  .price-card .price { font-size: 2.2rem; }
  .auth-card { padding: 22px 18px; }
  .qc-panel { left: 8px; right: 8px; width: auto; max-height: 70vh; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- login messages ---- */
.login-msg { min-height: 1.4em; margin-top: 12px; }
.login-msg.error { color: var(--danger); font-weight: 600; }
.login-msg.ok { color: var(--success); font-weight: 600; }
#googleBtn { margin-bottom: 4px; }
#googleBtn[aria-busy="true"], #submitBtn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---- dashboard: Pro upgrade card + stacked tables on phones ---- */
.pro-upsell { background: var(--omixa-tint); border: 1px solid var(--omixa-violet-light); }
.pro-upsell h2 { margin-top: 0; }
.pro-upsell-list { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.pro-upsell-list li { padding-left: 24px; position: relative; font-size: .92rem; }
.pro-upsell-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--omixa-glow); font-weight: 800; }
.pro-upsell-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.locked-note { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.dash-header > div { min-width: 0; }
#who { overflow-wrap: anywhere; }
/* tablets and below: any table inside a card scrolls inside it instead of widening the page */
@media (max-width: 1024px) {
  .card > table, .work-card > table, .panel > table, .card table.table-stack, .card div > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .pro-upsell-list { grid-template-columns: 1fr; }
  .pro-upsell-actions .btn { width: 100%; justify-content: center; }
  .card > table.table-stack, .table-stack { display: block; overflow: visible; white-space: normal; }
  .table-stack thead { display: none; }
  .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--border); border-radius: 12px; padding: 8px 4px; margin-bottom: 10px; background: var(--white); }
  .table-stack td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; overflow-wrap: anywhere; }
  .table-stack td::before { content: attr(data-label); font-weight: 700; color: var(--text-secondary); text-align: left; flex: 0 0 auto; }
  .table-stack td:first-child { font-weight: 700; }
  .table-stack td.cell-actions { justify-content: flex-end; flex-wrap: wrap; }
  .table-stack td.cell-actions::before { display: none; }
}

/* ---- responsive hardening (all screens) ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.app-shell { overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.finding > *, .rec-item > *, .stat-card, .card, .price-card { min-width: 0; }
.finding-body, .rec-item, .card, .alert, .file-chip, td, th { overflow-wrap: anywhere; word-break: normal; }
pre, code { max-width: 100%; overflow-x: auto; }
@media (max-width: 640px) {
  .link-btn { min-height: 44px; padding: 10px 10px; }
  .topnav-links a { min-height: 44px; display: flex; align-items: center; }
  h1 { overflow-wrap: anywhere; }
}
/* short landscape phones: keep the sticky nav and floating buttons from eating the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .topnav-links { max-height: calc(100dvh - 70px); overflow-y: auto; }
  .qc-panel { max-height: 80dvh; }
  .app-main { padding-top: 16px; }
}
/* very large screens: keep line lengths readable, centre content */
@media (min-width: 1600px) { .container { max-width: 1240px; } html { font-size: 17px; } }

/* ---- finding / recommendation cards: mobile fix ----
   The severity badge was a stretched flex item (full card height) and, because of the
   `min-width: 0` rule above, it could shrink narrower than its own text, so "WARNING"
   spilled over the description. Keep it a compact, non-shrinking pill. */
.finding > .badge, .rec-item > .badge { flex: none; align-self: flex-start; white-space: nowrap; line-height: 1.2; }
.finding-body, .rec-item-body { flex: 1 1 auto; min-width: 0; }
.resolve-select { max-width: 100%; width: 100%; }
@media (max-width: 640px) {
  .finding, .rec-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .finding-body, .rec-item-body { width: 100%; }
  .finding-body p, .rec-item-body p { font-size: 0.86rem; line-height: 1.45; }
  .resolve-select { min-height: 44px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
}

/* ---- review pop-up (flagged values) ---- */
.review-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(86dvh, 760px); padding: 0; overflow: hidden; }
.review-dialog[open] { display: flex; flex-direction: column; }
.review-dialog .rv-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 24px; flex: 1 1 auto; }
.rv-col h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .98rem; margin: 14px 0 8px; }
.rv-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--gray-50); }
.rv-what { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rv-val { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; padding: 2px 8px; border-radius: 8px; font-weight: 700; background: var(--warning-bg); color: var(--warning); }
.rv-meta, .rv-why { font-size: .78rem; color: var(--text-secondary); }
.rv-choice { flex: none; width: 230px; max-width: 45%; }
@media (max-width: 640px) {
  .review-dialog { max-height: 92dvh; }
  .review-dialog .rv-body { padding: 0 14px; }
  .review-dialog .m-dialog-body { padding: 18px 14px 6px; }
  .review-dialog .m-dialog-actions { padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .review-dialog .m-dialog-actions .btn { flex: 1 1 100%; min-height: 44px; }
  .rv-item { flex-direction: column; align-items: stretch; }
  .rv-choice { width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; }
}
.review-dialog .rv-body:focus { outline: none; }
.review-dialog .rv-body:focus-visible { outline: 2px solid var(--omixa-violet); outline-offset: -2px; border-radius: 8px; }

/* ---- Pro batch page (shares the free tool's look) ---- */
.batch-hero { max-width: 860px; }
.batch-hero .badge-plan-pro { display: inline-block; margin-bottom: 10px; }
.bfiles, .bcards { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.bfiles li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--gray-100); font-size: .9rem; font-weight: 600; }
.bfiles li strong { color: var(--danger); }
.bcard { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease); }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bcard.is-skipped { opacity: .5; }
.bcard-main { flex: 1; min-width: 0; }
.bcard-main strong { display: block; overflow-wrap: anywhere; }
.bcard-meta { margin: 4px 0 0; font-size: .82rem; color: var(--gray-600); }
.bcard-meta .chip { display: inline-block; margin: 4px 6px 0 0; padding: 2px 9px; border-radius: 999px; background: var(--gray-100); font-weight: 600; }
.bcard-meta .chip.warn { background: var(--warning-bg); color: var(--warning); }
.bcard-meta .chip.bad { background: var(--danger-bg); color: var(--danger); }
.bcard-meta .chip.ok { background: var(--success-bg); color: var(--success); }
.bcard-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bspin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--gray-100); border-top-color: var(--omixa-violet); animation: bspin .8s linear infinite; }
@keyframes bspin { to { transform: rotate(360deg); } }
.bsummary { padding: 14px 16px; margin-bottom: 8px; border-radius: var(--radius-lg); background: var(--edge); color: var(--white); font-weight: 700; }
.bbar { height: 10px; border-radius: 999px; background: var(--gray-100); overflow: hidden; margin: 10px 0; }
.bbar i { display: block; height: 100%; width: 0; background: var(--edge); transition: width .5s var(--ease-out); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 10px 0 16px; }
.opt { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.opt select, .opt input { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
@media (max-width: 640px) { .opt-grid, .batch-page .rules-grid { grid-template-columns: 1fr; } .bcard { flex-wrap: wrap; } .bcard-side { flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .bspin { animation: none; } .bcard, .bbar i { transition: none; } }

/* ---- Pro dashboard + pricing: livelier, same tokens ---- */
.dash-hero { padding: 22px; border-radius: var(--radius-lg); border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--edge) border-box; box-shadow: var(--shadow-sm); }
.dash-hero h1 { margin: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.quick-tile { display: grid; gap: 4px; padding: 14px; border-radius: var(--radius-md); background: var(--gray-100); color: var(--text-primary);
  text-decoration: none; font-size: .84rem; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease); }
.quick-tile strong { font-size: 1rem; color: var(--omixa-indigo); }
.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.quick-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--edge); margin-bottom: 6px; }
.quick-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spotlight { max-width: 860px; margin: 40px auto 0; padding: 28px 22px; text-align: center; border-radius: var(--radius-lg); border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--edge) border-box; }
.spotlight h2 { margin: 10px 0 6px; font-size: clamp(1.4rem, 5vw, 2rem); }
.spotlight p { max-width: 520px; margin: 0 auto; color: var(--gray-600); }
.flow4 { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: f; }
.flow4 li { counter-increment: f; padding: 14px 10px; border-radius: var(--radius-md); background: var(--gray-100); display: grid; gap: 4px; font-size: .82rem; }
.flow4 li::before { content: counter(f); width: 26px; height: 26px; margin: 0 auto 4px; display: grid; place-items: center; border-radius: 50%; background: var(--omixa-indigo); color: var(--white); font-weight: 800; }
.flow4 strong { color: var(--omixa-indigo); font-size: 1rem; }
.compare { max-width: 860px; margin: 40px auto 0; }
.compare-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.compare thead th { background: var(--gray-100); color: var(--omixa-indigo); }
.compare tbody th { font-weight: 600; }
.compare td:last-child { font-weight: 700; color: var(--omixa-indigo); }
@media (max-width: 720px) { .quick-grid, .flow4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .quick-grid, .flow4 { grid-template-columns: 1fr; } }

/* ---- login: brand panel beside the form ---- */
.auth-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: stretch; max-width: 900px; margin: 32px auto; }
.auth-wrap .auth-card { max-width: none; margin: 0; }
.auth-side { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--edge); color: var(--white); text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-side img { width: 48px; height: 48px; border-radius: 12px; background: var(--white); padding: 4px; }
.auth-side h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; color: var(--white); }
.auth-side h2 .w { display: inline-block; }
.auth-side p { margin: 0; color: var(--white); opacity: .9; }
.auth-side ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.auth-side li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .16); font-size: .86rem; transition: transform .2s var(--ease-out); }
.auth-side li:hover { transform: translateX(4px); }
.auth-side li strong { font-size: .98rem; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; margin: 16px auto; } .auth-side { padding: 22px 18px; } .auth-side ul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .auth-side li { transition: none; } }


/* ---------- Guides, About, footer navigation (SEO content pages) ---------- */
.guide-page { max-width: 760px; margin: 0 auto; padding: 8px 4px 24px; }
.guide-page h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 6px 0 14px; color: var(--ink); }
.guide-page h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 34px 0 10px; color: var(--ink); }
.guide-page p, .guide-page li { line-height: 1.7; color: var(--gray-800); }
.guide-lead { font-size: 1.12rem; color: var(--gray-800); }
.crumbs { font-size: .9rem; color: var(--gray-600); }
.crumbs a { color: var(--omixa-indigo); }
.guide-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0; }
.guide-steps { padding-left: 1.3rem; }
.guide-note { background: var(--white); border-left: 4px solid var(--omixa-violet); border-radius: var(--radius-md); padding: 14px 18px; margin: 26px 0; box-shadow: var(--shadow-sm); }
.guide-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.guide-grid a { display: block; height: 100%; background: var(--white); border-radius: 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.guide-grid a:hover { box-shadow: var(--shadow-md); }
.guide-grid span { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.5; color: var(--gray-600); }
.guides .guide-grid { max-width: 1040px; margin: 0 auto; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 28px; }
.footer-cols h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); opacity: .7; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 8px; font-size: .94rem; color: var(--white); }
.footer-cols a { color: var(--white); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }

/* Contact form */
.contact-card { margin-top: 22px; }
.contact-card textarea { resize: vertical; min-height: 140px; }
.contact-card .alert { margin: 16px 0 0; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
