/* ==========================================================
   WoeUSB — woeusb.app
   Light theme · Poppins · Vanilla CSS
   ========================================================== */

/* Fonts: Poppins is embedded in fonts.css (no external requests) */

/* ---------- Tokens ---------- */
:root {
  --blue: #1e63f0;
  --blue-500: #3f8cff;
  --blue-600: #1554d6;
  --blue-700: #0e3fa8;
  --navy: #0b1f4d;
  --ink: #1b2a4a;
  --muted: #55647e;
  --bg: #f5f9ff;
  --soft: #eaf2ff;
  --soft-2: #f1f6ff;
  --line: #dde7f7;
  --white: #ffffff;
  --ok: #12a150;
  --warn: #c2410c;
  --warn-bg: #fff4ec;
  --code-bg: #0f2557;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 77, .05);
  --shadow: 0 10px 30px rgba(11, 31, 77, .08);
  --shadow-lg: 0 18px 44px rgba(30, 99, 240, .16);
  --header-h: 72px;
  --font: "Poppins", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1180px) { .container { padding: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 28px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-500) 100%); color: #fff; box-shadow: 0 10px 24px rgba(30, 99, 240, .30); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 99, 240, .38); }
.btn-ghost { background: #fff; color: var(--blue); border-color: #cfe0fb; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.btn-white:hover { color: var(--blue); transform: translateY(-2px); }

/* ---------- Header ---------- */
#site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-h); }
.header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 31, 77, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand img { width: 42px; height: 42px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .93rem; padding: 8px 13px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--blue); }
.nav a.active { background: var(--soft); color: var(--blue); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 12px 20px; font-size: .93rem; color: #fff; }
.nav .btn:hover { background: linear-gradient(135deg, var(--blue-600), var(--blue)); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 34px 0 40px;
  background:
    radial-gradient(800px 360px at 12% 18%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(900px 420px at 88% 30%, rgba(196, 220, 255, .75), transparent 65%),
    linear-gradient(180deg, #e9f2ff 0%, #f4f8ff 70%, #ffffff 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 1200px; height: 520px; left: -380px; top: 140px; border: 60px solid rgba(255, 255, 255, .55); transform: rotate(-8deg); }
.hero::after { width: 1100px; height: 520px; right: -460px; top: -120px; border: 50px solid rgba(147, 189, 255, .18); transform: rotate(12deg); }
.hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 900px; margin-bottom: 14px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 780px; color: #33415f; font-size: 1.04rem; margin-bottom: 14px; }
.hero-visual { width: 100%; max-width: 760px; aspect-ratio: 1480 / 499; margin: 0 auto 10px; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: #3b4a68; font-size: .92rem; font-weight: 500; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; }
.hero-chips .ic { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.section-tint { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--soft); padding: 5px 14px; border-radius: 30px; margin-bottom: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #bcd3fa; }
.icon-box { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, #eaf2ff, #dce9ff); transition: transform .25s ease, background .25s ease, color .25s ease; }
.icon-box .ic { width: 28px; height: 28px; }
.card.hover:hover .icon-box { transform: scale(1.06); background: linear-gradient(135deg, var(--blue), var(--blue-500)); color: #fff; }

/* About */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: #33415f; }
.about-visual { position: relative; }
.about-visual img { width: 100%; aspect-ratio: 900 / 402; object-fit: contain; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; padding: 0; }
.about-points li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; color: var(--navy); }
.about-points .ic { width: 18px; height: 18px; color: var(--blue); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px 24px; text-align: center; }
.feature .icon-box { margin: 0 auto 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* How it works */
.flow-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 34px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.flow-strip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--soft-2); color: var(--navy); font-weight: 600; font-size: .9rem; }
.flow-strip span .ic { width: 18px; height: 18px; color: var(--blue); }
.flow-strip span.end { background: linear-gradient(135deg, var(--blue), var(--blue-500)); color: #fff; }
.flow-strip span.end .ic { color: #fff; }
.flow-strip .arrow { color: var(--blue); width: 20px; height: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }
.step { padding: 26px 22px; position: relative; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-num { font-weight: 700; font-size: 2rem; line-height: 1; color: #d3e2fb; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -26px; width: 18px; height: 18px; transform: translateY(-50%); background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e63f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* Download band */
.download-band { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 34px 38px; border-radius: 24px; background: linear-gradient(120deg, #ffffff 0%, #eaf2ff 55%, #d8e7ff 100%); border: 1px solid #cfe0fb; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.download-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(63, 140, 255, .22), transparent 70%); pointer-events: none; }
.download-icon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-500)); color: #fff; box-shadow: 0 12px 26px rgba(30, 99, 240, .35); }
.download-icon .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.download-band h2 { margin-bottom: 6px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.download-band p { margin: 0; color: #33415f; }
.download-band .btn { position: relative; z-index: 1; }
.download-note { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; margin-top: 30px; align-items: start; }
.download-copy { padding: 28px; }
.download-copy h3 { font-size: 1.15rem; }
.download-copy p { color: #33415f; font-size: .96rem; }
.download-copy ul { list-style: none; padding: 0; margin: 0; }
.download-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: #33415f; margin-bottom: 10px; }
.download-copy li .ic { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #f8fbff; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--navy); width: 38%; }
.info-table caption { caption-side: top; text-align: left; padding: 16px 18px 10px; font-weight: 600; color: var(--navy); font-size: 1.08rem; }

/* Install */
.install-panel { padding: 10px 26px; }
.install-note { margin-top: 18px; }
.install-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.install-row:last-child { border-bottom: 0; }
.install-row h3 { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: 1rem; }
.distro-dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-size: .85rem; font-weight: 700; }
.distro-dot .ic { width: 20px; height: 20px; }
.install-row p { color: var(--muted); font-size: .93rem; margin-bottom: 10px; }
.code {
  position: relative; background: var(--code-bg); color: #e8efff; border-radius: 12px;
  padding: 14px 54px 14px 16px; font-size: .86rem; line-height: 1.7; margin: 0 0 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}
.code code, .prose .code code { font-size: inherit; background: none; color: inherit; padding: 0; border-radius: 0; }
.copy-btn { position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #cfe0ff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.copy-btn:hover { background: rgba(255, 255, 255, .18); }
.copy-btn .ic { width: 17px; height: 17px; }
.copy-btn .ic-done { display: none; }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-done { display: block; color: #7ee2a8; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--soft-2); border: 1px solid #d3e3fb; font-size: .92rem; color: #33415f; margin: 0 0 14px; }
.note .ic { color: var(--blue); margin-top: 2px; }
.note.warn { background: var(--warn-bg); border-color: #fbd6bf; }
.note.warn .ic { color: var(--warn); }
.note p { margin: 0; }

/* Create steps (7) */
.create-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.create-step { padding: 24px 20px; }
.create-step .badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--soft); padding: 4px 12px; border-radius: 30px; margin-bottom: 12px; }
.create-step .icon-box { width: 48px; height: 48px; margin-bottom: 12px; }
.create-step .icon-box .ic { width: 24px; height: 24px; }
.create-step h3 { font-size: 1rem; margin-bottom: 6px; }
.create-step p { font-size: .9rem; color: var(--muted); margin: 0; }
.create-step code, .prose code, .faq-a code, .trouble code { background: var(--soft); color: var(--blue-700); padding: 1px 6px; border-radius: 6px; font-size: .86em; }
.terminal { border-radius: 16px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e9f1ff; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #9db8e8; }
.terminal-bar span { margin-left: 8px; font-size: .78rem; font-weight: 600; color: #3b4d6e; }
.terminal pre { margin: 0; padding: 16px 18px; color: #e8efff; font-size: .82rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .p { color: #6fa3ff; }
.terminal .c { color: #8aa1c9; }

/* Comparison (WoeUSB vs WoeUSB-ng) */
.vs-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.vs-text p { color: #33415f; }
.choose-grid { display: grid; gap: 14px; margin-top: 22px; }
.choose { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 18px; }
.choose h3 { margin: 0 0 3px; font-size: .98rem; }
.choose p { margin: 0; font-size: .9rem; color: var(--muted); }
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.vs-prod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 16px; background: var(--soft-2); border: 1px solid #d3e3fb; }
.vs-prod .ic { width: 30px; height: 30px; color: var(--blue); margin-bottom: 4px; }
.vs-prod strong { color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.vs-prod small { color: var(--muted); font-size: .8rem; }
.vs-prod.ng { background: linear-gradient(135deg, var(--blue), var(--blue-500)); border-color: transparent; }
.vs-prod.ng .ic, .vs-prod.ng strong, .vs-prod.ng small { color: #fff; }
.vs-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 18px rgba(11, 31, 77, .25); }
.vs-card .table-wrap { border: 0; border-radius: 0; }
.vs-card thead { display: none; }
.vs-card tbody th { width: 30%; color: var(--muted); font-weight: 500; }
.vs-card td { font-weight: 500; color: var(--navy); }
.vs-card tbody tr:nth-child(even) { background: var(--soft-2); }

/* Requirements: open numbered checklist */
#requirements .eyebrow, #alternatives .eyebrow { background: none; border-radius: 0; padding: 0; }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.req-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 18px; align-content: start; }
.req-number { grid-row: span 2; color: var(--blue); font-size: 2.4rem; font-weight: 600; line-height: 1.2; letter-spacing: -.05em; }
.req-item h3 { margin: 0 0 10px; font-size: 1.12rem; }
.req-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Troubleshooting */
.issue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.issue-card { padding: 24px 22px; }
.issue-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.issue-top h3 { margin: 0; font-size: 1rem; }
.issue-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.fix-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: #e7f7ee; border-radius: 6px; padding: 1px 8px; margin-right: 8px; vertical-align: 1px; }
.issue-card code { background: var(--soft); color: var(--blue-700); padding: 1px 6px; border-radius: 6px; font-size: .86em; }

/* Alternatives: open comparison rows */
.alt-grid { display: flex; flex-direction: column; gap: 0; }
.alt-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, .8fr) minmax(0, 2fr); align-items: baseline; gap: 20px 32px; padding: 26px 0; }
.alt-row + .alt-row { border-top: 1px solid var(--line); }
.alt-row h3 { margin: 0; font-size: 1.16rem; }
.alt-focus { font-size: .8rem; font-weight: 600; color: #0f8a48; }
.alt-row p { margin: 0; font-size: .94rem; color: var(--muted); }

.mini-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--blue); flex-shrink: 0; }
.mini-icon .ic { width: 21px; height: 21px; }
.mini-icon.warn { background: var(--warn-bg); color: var(--warn); }
.mini-icon.alt { background: #e9f8f0; color: #0f8a48; }

/* Why choose */
.why { position: relative; overflow: hidden; background: linear-gradient(110deg, #e6f0ff 0%, #f5f9ff 55%, #ffffff 100%); }
.why-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.why-visual img { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 440 / 357; object-fit: contain; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: #33415f; }
.check-list .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.check-list .tick .ic { width: 14px; height: 14px; stroke-width: 3; }

/* Guides (cards) */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.guide-card:hover { color: inherit; }
.guide-card .thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--soft); }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-card:hover .thumb img { transform: scale(1.04); }
.guide-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-cat { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.guide-body h2, .guide-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.guide-body p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.read-more .ic { width: 18px; height: 18px; transition: transform .2s; }
.guide-card:hover .read-more .ic { transform: translateX(4px); }
.center-cta { text-align: center; margin-top: 34px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.faq-cat { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 14px; }
.faq-cat .mini-icon { width: 36px; height: 36px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: #bcd3fa; box-shadow: var(--shadow); }
.faq-q { margin: 0; font-size: .95rem; }
.faq-q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: 0; text-align: left; font-family: var(--font); font-weight: 600; font-size: .95rem; color: var(--navy); padding: 15px 18px; cursor: pointer; border-radius: 12px; line-height: 1.45; }
.faq-q button .ic { width: 20px; height: 20px; color: var(--blue); transition: transform .25s ease; }
.faq-item.open .faq-q button .ic { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(135deg, #0b2a6b 0%, #0d3a8f 55%, #1550c4 100%); color: #cfdcf6; padding: 56px 0 0; margin-top: 0; }
.footer a { color: #e4ecff; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 34px; padding-bottom: 38px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand img { background: #fff; border-radius: 10px; padding: 3px; }
.footer p { font-size: .9rem; color: #c3d2f0; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: .9rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links .ic { width: 14px; height: 14px; opacity: .7; }
.footer-cta { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 22px; }
.footer-cta h3 { margin-bottom: 6px; font-size: 1.1rem; }
.footer-cta .btn { width: 100%; margin-top: 6px; }
.footer .btn-white, .footer .btn-white:hover { color: var(--blue-700); }
.footer-copy { text-align: center; font-size: .85rem; color: #b3c4e8; padding: 20px 0 6px; margin: 0; }

.footer .footer-disclaimer { text-align: center; font-size: .8rem; color: #b3c4e8; padding: 0 0 26px; margin: 0; }

/* Scroll to top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--blue), var(--blue-500)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(30, 99, 240, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top .ic { width: 22px; height: 22px; stroke-width: 2.4; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, #e9f2ff 0%, #f5f9ff 100%); padding: 44px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aaccb; }
.breadcrumb a { color: var(--blue); }
.post-hero { text-align: left; }
.post-hero .breadcrumb { justify-content: flex-start; }
.post-hero p { margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); margin-top: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .ic { width: 16px; height: 16px; color: var(--blue); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 44px; padding-bottom: 70px; align-items: start; }
.post-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; aspect-ratio: 1200 / 630; background: var(--soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1rem; color: #2c3a58; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.3rem, 2.4vw, 1.65rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul li, .prose ol li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9cbcf5; }
.prose .table-wrap { margin: 0 0 1.4em; }
.prose .lead { font-size: 1.08rem; color: var(--ink); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 22px; }
.side-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
.side-card p { font-size: .9rem; color: var(--muted); }
.side-card .btn { width: 100%; }
.side-dl { background: linear-gradient(135deg, #eaf2ff, #ffffff); text-align: center; }
.side-dl img { width: 72px; height: 72px; margin: 0 auto 10px; }
.toc ol { padding-left: 1.1em; margin: 0; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--blue); }
.side-posts { list-style: none; padding: 0; margin: 0; }
.side-posts li { margin-bottom: 12px; }
.side-posts a { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; color: var(--ink); font-size: .86rem; font-weight: 500; line-height: 1.4; }
.side-posts a:hover { color: var(--blue); }
.side-posts img { width: 76px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.related { border-top: 1px solid var(--line); padding-top: 50px; margin-top: 10px; }
.legal { padding-top: 44px; padding-bottom: 70px; }
.contact-card { max-width: 640px; margin: 0 auto; padding: 36px; text-align: center; }
.contact-card .icon-box { margin: 0 auto 16px; }
.contact-email { font-weight: 600; font-size: 1.2rem; color: var(--navy); background: var(--soft); border-radius: 12px; padding: 12px 18px; display: inline-block; margin: 6px 0 14px; word-break: break-all; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 31, 77, .1); padding: 10px 20px 18px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; padding: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 900px) {
  .about-wrap, .why-wrap, .vs-wrap, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .why-visual { order: -1; }
  .features-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .download-band { grid-template-columns: auto 1fr; }
  .download-band .dl-action { grid-column: 1 / -1; }
  .install-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .hero { padding: 22px 0 30px; }
  .hero-lead { font-size: .95rem; margin-bottom: 16px; }
  .hero-actions { margin-bottom: 12px; width: 100%; }
  .hero-visual { order: 4; margin: 6px auto 4px; }
  .hero-chips { order: 5; font-size: .85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 38px; height: 38px; }
  .features-grid, .guides-grid, .steps, .create-grid, .footer-grid, .req-grid, .issue-grid { grid-template-columns: minmax(0, 1fr); }
  .vs-card { padding: 16px; }
  .vs-head { gap: 8px; }
  .vs-prod { padding: 14px 6px; }
  .vs-prod strong { font-size: .92rem; white-space: nowrap; }
  .vs-badge { width: 38px; height: 38px; font-size: .75rem; }
  .vs-card table, .vs-card tbody { display: block; }
  .vs-card tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
  .vs-card tr:last-child { border-bottom: 0; }
  .vs-card tbody th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
  .vs-card td { padding: 0; border: 0; font-size: .88rem; }
  .step::after { display: none !important; }
  .download-band { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .download-icon { margin: 0 auto; }
  .download-band .btn { width: 100%; }
  .download-copy { padding: 22px; }
  .install-panel { padding: 4px 18px; }
  .flow-strip { flex-direction: column; }
  .flow-strip .arrow { transform: rotate(90deg); }
  .btn { white-space: normal; }
  .contact-card { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .alt-row { grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); gap: 8px 28px; }
  .alt-row .alt-focus { grid-column: 1; grid-row: 2; }
  .alt-row p { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
  .req-grid { gap: 28px; }
  .req-item { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .req-number { font-size: 1.9rem; }
  .alt-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .alt-row .alt-focus, .alt-row p { grid-column: auto; grid-row: auto; }
}
/* Deployment stability: navigation and section layout safety */
.header-inner {min-width:0;}
.header .brand {flex:0 0 auto; white-space:nowrap;}
.header .nav {min-width:0; flex-wrap:nowrap;}
.header .nav > a {white-space:nowrap;}
@media (min-width:1101px) and (max-width:1250px) {
  .header-inner {gap:8px;}
  .header .nav {gap:0;}
  .header .nav > a {padding:8px 9px; font-size:.85rem;}
  .header .nav .btn {padding:10px 12px; margin-left:5px;}
}
@media (max-width:1100px) {
  .header .nav {flex-wrap:nowrap;}
  .header .nav > a {white-space:normal;}
}
