/* bank2xls.com: shared styles. Light minimal style matching the extension icon:
   brand green #1e8f4e for fills, a darker green for text links (contrast),
   red #e5383b only for small details. Dark theme via prefers-color-scheme. */
:root {
  --bg: #ffffff;
  --surface: #f6f8f7;
  --fg: #16181a;
  --muted: #555d63;
  --border: #e3e7e5;
  --brand: #1e8f4e;
  --brand-hover: #187a42;
  --brand-text: #19784a;
  --on-brand: #ffffff;
  --accent: #e5383b;
  --on-accent: #ffffff;
  --ill-window: #ffffff;
  --ill-bar: #eef1f0;
  --ill-field: #f6f8f7;
  --ill-line: #c9d1cd;
  --ill-ink: #3d4549;
  --radius: 14px;
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1110;
    --surface: #151b19;
    --fg: #eef2f0;
    --muted: #a3ada8;
    --border: #26302c;
    --brand: #1e8f4e;
    --brand-hover: #23a35a;
    --brand-text: #5fd38d;
    --on-brand: #ffffff;
    --accent: #ff5a5d;
    --ill-window: #1a211e;
    --ill-bar: #222b27;
    --ill-field: #2a3430;
    --ill-line: #3a4641;
    --ill-ink: #d5ddd9;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--brand-text); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.site-header {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--fg);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
}
.brand img { width: 2rem; height: 2rem; }

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hero-icon { width: 5rem; height: 5rem; display: block; margin-bottom: 1.5rem; }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
}
h1:focus { outline: none; }

.lead {
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  color: var(--muted);
}


/* ---- Welcome page: two modes in one document ---- */
body[data-mode="pin"] .mode-usage,
body[data-mode="usage"] .mode-pin { display: none; }

.illustration {
  margin: 0 0 2rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.illustration svg { display: block; width: 100%; height: auto; }
.ill-window { fill: var(--ill-window); stroke: var(--ill-line); }
.ill-bar { fill: var(--ill-bar); }
.ill-field { fill: var(--ill-field); stroke: var(--ill-line); }
.ill-line { stroke: var(--ill-line); fill: none; }
.ill-ink { fill: var(--ill-ink); }
.ill-text { fill: var(--ill-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.ill-muted { fill: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.ill-icon { fill: none; stroke: var(--ill-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Filled glyphs (Material Symbols, Apache License 2.0) in the toolbar sketch */
.ill-glyph { fill: var(--ill-ink); }
.ill-highlight { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.ill-badge { fill: var(--accent); }
.ill-badge-text { fill: var(--on-accent); font-weight: 700; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  padding: 1rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0 2rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--brand-hover); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn[hidden] { display: none; }

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
}
.privacy svg {
  width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.2rem;
  fill: none; stroke: var(--brand-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.switch { margin: 2.5rem 0 0; }
.switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

@media (max-width: 30rem) {
  main { padding-top: 1rem; }
  .hero-icon { width: 4rem; height: 4rem; }
  .btn { width: 100%; }
  .illustration { padding: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Text pages (/privacy/, /support/) and footer ---- */
main.prose h2 { margin: 2.25rem 0 0.5rem; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; }
main.prose h3 { margin: 1.5rem 0 0.25rem; font-size: 1.125rem; line-height: 1.3; }
main.prose p, main.prose ul { margin: 0 0 1rem; }
main.prose ul { padding-left: 1.25rem; }
main.prose li { margin-bottom: 0.5rem; }
main.prose h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
main.prose .lead { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--fg); }
main.prose .meta { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; }
main.prose code { padding: 0.1em 0.35em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 0.9em; overflow-wrap: anywhere; }
main.prose a { overflow-wrap: anywhere; }
main.prose .note { padding: 1rem 1.125rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  border-top: 1px solid var(--border);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
}
main.prose a.contact { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

/* ---- Home page sections, CTA, step slots, figures, ordered steps ---- */
main.home h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; }
main.home .lead { font-size: clamp(1.125rem, 2.6vw, 1.3125rem); color: var(--muted); margin-bottom: 1.5rem; }
.cta { margin: 0 0 0.5rem; }
a.btn { text-decoration: none; }
a.btn:hover { text-decoration: none; }
a.btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cta-note { margin: 0 0 2rem; color: var(--muted); font-size: 1rem; }
main.prose .shot { margin: 1.5rem 0 0; }
main.prose .shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
main.prose .shot figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
ol.how { list-style: none; counter-reset: how; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
ol.how li { counter-increment: how; margin: 0; padding: 1rem 1.125rem 0.25rem 3.5rem; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
ol.how li::before { content: counter(how); position: absolute; left: 1rem; top: 1rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 0.9375rem; }
main.prose ol.how h3 { margin: 0 0 0.25rem; }
/* Empty screenshot slot: hidden until an <img> is placed inside */
.step-media:empty { display: none; }
.step-media { margin: 0 0 1rem; }
.step-media img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
main.prose ol.plain { padding-left: 1.5rem; }
main.prose ol.plain li { padding-left: 0.25rem; }

/* Footer notes: copyright/contact and official-site line */
.site-footer .footer-note { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted, inherit); }
.site-footer .footer-note a { font-size: inherit; }
