/* Password Security Center — design system
   Tokens derived from the "corporate-fintech" system: security blue primary,
   near-black ink, crisp light neutrals, restrained radii, blue-tinted depth. */

:root {
  --background: #fcfcfc;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --primary: #2968c7;
  --primary-strong: #1f52a3;
  --primary-soft: #eef3fc;
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #5f5f6b;
  --accent: #f7f7f8;
  --accent-foreground: #18181b;
  --destructive: #c62f2f;
  --border: #e4e4e7;
  --input: #eaeaeb;
  --ring: #2968c7;
  --navy: #0d1a30;
  --navy-soft: #16273f;
  --success: #17795e;
  --warning: #9a6108;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 10px rgba(0, 59, 153, .09), 0 2px 4px rgba(0, 59, 153, .05);
  --shadow-lg: 0 12px 28px rgba(0, 59, 153, .12), 0 4px 10px rgba(0, 59, 153, .06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --maxw: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; color: var(--foreground); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-weight: 660; margin-top: 1.5em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong { font-weight: 660; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.small { font-size: .92rem; }
.tiny { font-size: .83rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 60; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 252, 252, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--foreground); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-text { font-size: 1.02rem; }
.brand-text span { color: var(--muted-foreground); font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--secondary-foreground); font-size: .95rem; font-weight: 520;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--muted); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; cursor: pointer;
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
         align-items: stretch; background: var(--card); border-bottom: 1px solid var(--border);
         padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow-md); }
  .nav[data-open="true"] { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; cursor: pointer; text-align: center;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--card); color: var(--secondary-foreground); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); background:
  linear-gradient(180deg, #ffffff 0%, var(--background) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.hero h1 { margin-bottom: .45em; }
.lede { font-size: 1.16rem; color: #3f3f46; max-width: 34em; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--muted-foreground); }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 40px; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted-foreground); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; fill: var(--success); flex: 0 0 auto; }

/* ---------- sections ---------- */
section { padding: 58px 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head p { color: var(--muted-foreground); margin-bottom: 0; }
.band-muted { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-navy { background: var(--navy); color: #e8eef8; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: #9dc0f5; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 10px;
}
a.card { color: inherit; }
a.card:hover { box-shadow: var(--shadow-md); border-color: #d3d3da; text-decoration: none; transform: translateY(-1px); transition: all .16s ease; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted-foreground); font-size: .95rem; }
.card .card-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--primary); font-weight: 650; }
.card-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); display: grid; place-items: center; }
.card-icon svg { width: 18px; height: 18px; fill: var(--primary); }

.post-card { padding: 0; overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card time { font-size: .82rem; color: var(--muted-foreground); }

/* ---------- prose (guides + blog) ---------- */
.prose { font-size: 1.05rem; }
.prose > p:first-of-type { font-size: 1.12rem; color: #2f2f36; }
.prose h2 { margin-top: 2em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.6em 0; }
.prose figcaption { font-size: .86rem; color: var(--muted-foreground); margin-top: -.8em; margin-bottom: 1.6em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary);
  color: #3f3f46; font-style: normal;
}
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--muted); padding: 2px 5px; border-radius: 5px; }
.prose pre { background: var(--navy); color: #e8eef8; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--muted); font-weight: 650; }

.callout { border-radius: var(--radius); padding: 16px 18px; margin: 1.6em 0; border: 1px solid var(--border); background: var(--accent); }
.callout strong { display: block; margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { border-left: 4px solid var(--primary); background: var(--primary-soft); }
.callout.warn { border-left: 4px solid var(--warning); background: #fdf6e8; }
.callout.tip { border-left: 4px solid var(--success); background: #eef8f4; }

.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 26px; }
.toc strong { display: block; margin-bottom: 8px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }

keyfacts, .keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.6em 0; }
.keyfacts .fact { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.keyfacts .fact b { display: block; font-size: 1.35rem; color: var(--primary); letter-spacing: -.02em; }
.keyfacts .fact span { font-size: .86rem; color: var(--muted-foreground); }

.breadcrumbs { font-size: .86rem; color: var(--muted-foreground); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted-foreground); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #c4c4cc; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .88rem; color: var(--muted-foreground); margin: 6px 0 22px; }

/* ---------- tools ---------- */
.tool { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.tool label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.tool input[type="text"], .tool input[type="number"], .tool select, .tool textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--input); background: #fff; color: var(--foreground);
}
.tool input[type="range"] { width: 100%; }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.field-row input { flex: 1 1 auto; }
.meter { height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; margin: 14px 0 8px; }
.meter > i { display: block; height: 100%; width: 0; background: var(--destructive); transition: width .2s ease, background .2s ease; }
.meter-label { font-weight: 650; font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; padding: 6px 0; border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; }
.checklist .ok { color: var(--success); font-weight: 700; }
.checklist .no { color: var(--destructive); font-weight: 700; }
.output-box { font-family: var(--font-mono); font-size: 1.05rem; word-break: break-all; background: var(--muted); padding: 14px; border-radius: var(--radius); min-height: 48px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pill { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); }
.pill.on { background: var(--primary-soft); color: var(--primary-strong); border-color: #c9d9f4; }

/* ---------- share ---------- */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.share-bar span { font-size: .85rem; color: var(--muted-foreground); font-weight: 600; }
.share-bar a, .share-bar button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); cursor: pointer; color: #52525b;
}
.share-bar a:hover, .share-bar button:hover { border-color: var(--primary); color: var(--primary); }
.share-bar svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- faq ---------- */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 620; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq .answer { padding: 0 0 16px; color: #3f3f46; }

/* ---------- advertiser / affiliate ---------- */
.product { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.product img { width: 104px; height: 104px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); flex: 0 0 auto; }
.product .body { flex: 1 1 auto; }
.product h3 { margin: 0 0 4px; font-size: 1rem; }
.product p { margin: 0 0 10px; font-size: .92rem; color: var(--muted-foreground); }
.price { font-weight: 700; }
.disclosure { font-size: .85rem; color: var(--muted-foreground); background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c8e0; padding: 52px 0 30px; margin-top: 0; }
.site-footer a { color: #cfdcf1; }
.site-footer h3 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #23364f; margin-top: 34px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- misc ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 1.7rem; letter-spacing: -.03em; color: var(--primary); }
.stat span { font-size: .88rem; color: var(--muted-foreground); }
.notice { background: var(--primary-soft); border: 1px solid #cddef7; color: #1c3f77; border-radius: var(--radius); padding: 14px 16px; font-size: .93rem; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: none; }
.back-to-top[data-show="true"] { display: inline-flex; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .share-bar, .back-to-top, .tool { display: none !important; }
  body { font-size: 12pt; }
}
