/* ==========================================================
   Replay Mod — global stylesheet
   Light theme · Poppins · 1140px layout
   ========================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --primary: #1c6fb8;
  --primary-dark: #124f88;
  --deep: #0e2a47;
  --sky: #5aa0de;
  --pale: #e8f2fc;
  --pale-2: #d6e8f8;
  --grass: #3f8f2a;
  --amber: #b86e10;
  --bg: #f6f9fd;
  --surface: #ffffff;
  --text: #1a2c42;
  --muted: #4c6079;
  --line: #dbe6f2;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 2px 8px rgba(14, 42, 71, .06);
  --shadow-m: 0 12px 32px rgba(14, 42, 71, .10);
  --header-h: 74px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: "Poppins", Arial, sans-serif; color: var(--deep); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: "Poppins", Arial, sans-serif; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: calc(100% - 40px); max-width: var(--wrap); margin: 0 auto; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid rgba(219, 230, 242, .7); }

/* Shared section heading — same centered alignment everywhere */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--muted); margin: 0 auto; font-size: 1.04rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.eyebrow i { display: inline-flex; gap: 3px; }
.eyebrow i b { width: 7px; height: 7px; background: var(--primary); display: block; }
.eyebrow i b:nth-child(2) { background: var(--sky); }
.eyebrow i b:nth-child(3) { background: var(--pale-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: var(--radius-s); border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; line-height: 1.2; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-dark), 0 10px 22px rgba(28, 111, 184, .25); }
.btn-primary:hover { color: #fff; background: #1a66aa; transform: translateY(-2px); box-shadow: 0 6px 0 var(--primary-dark), 0 14px 26px rgba(28, 111, 184, .28); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }

/* ================= HEADER ================= */
#site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
#site-header.is-scrolled { box-shadow: 0 6px 22px rgba(14, 42, 71, .08); border-color: var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; color: var(--deep); justify-self: start; }
.brand img { width: 40px; height: 37px; }
.brand:hover { color: var(--deep); }
.nav { justify-self: center; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; font-weight: 500; font-size: .96rem; color: var(--text); border-radius: var(--radius-s); position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover, .nav a.is-active { color: var(--primary); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: .94rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--deep); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
.menu-open .menu-toggle .i-open { display: none; }

/* ================= HERO ================= */
.hero { padding: 54px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 40px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.hero-kicker span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--pale); align-items: center; justify-content: center; }
.hero-kicker span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e2443c; box-shadow: 0 0 0 4px rgba(226, 68, 60, .18); }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; color: var(--deep); }
.hero-trust svg { width: 22px; height: 22px; color: var(--primary); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-m); background: #eaf4ff; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--primary); z-index: -1; }
.hero-visual::before { top: -11px; left: -11px; box-shadow: 22px 0 0 var(--sky), 0 22px 0 var(--pale-2); }
.hero-visual::after { bottom: -11px; right: -11px; box-shadow: -22px 0 0 var(--sky), 0 -22px 0 var(--pale-2); }
.hero-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ================= ABOUT (split + fact strip) ================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-m); border: 1px solid var(--line); }
.about-media figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.about-copy p { color: var(--text); }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 2px solid var(--deep); }
.fact-strip div { padding: 16px 16px 0 0; }
.fact-strip div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.fact-strip dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.fact-strip dd { margin: 4px 0 0; font-weight: 700; color: var(--deep); font-size: .98rem; }

/* ================= FEATURES (top-rule tiles) ================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; }
.feature { position: relative; padding-top: 26px; transition: transform .25s ease; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary) 0 34%, var(--sky) 34% 56%, var(--pale-2) 56% 100%); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--pale); color: var(--primary); border-radius: 4px; margin-bottom: 18px; transition: transform .25s ease, background .25s ease, color .25s ease; }
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature:hover { transform: translateY(-4px); }
.feature:hover .feature-icon { background: var(--primary); color: #fff; transform: rotate(-4deg); }

/* ================= HOW IT WORKS (keyframe timeline) ================= */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; top: 37px; left: 12%; right: 12%; height: 6px; background: repeating-linear-gradient(90deg, var(--primary) 0 18px, transparent 18px 26px); border-radius: 3px; opacity: .55; }
.timeline li { text-align: center; position: relative; }
.kf { width: 76px; height: 76px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; }
.kf::before { content: ""; position: absolute; inset: 10px; background: var(--surface); border: 3px solid var(--primary); transform: rotate(45deg); border-radius: 8px; box-shadow: var(--shadow-s); transition: background .25s ease; }
.kf svg { position: relative; width: 28px; height: 28px; color: var(--primary); transition: color .25s ease; }
.timeline li:hover .kf::before { background: var(--primary); }
.timeline li:hover .kf svg { color: #fff; }
.timeline h3 { font-size: 1.08rem; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ================= COMPATIBILITY (table) ================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
.compat-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compat-table th, .compat-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compat-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: #fbfdff; }
.compat-table tbody tr { transition: background .2s ease; }
.compat-table tbody tr:hover { background: var(--pale); }
.compat-table tbody tr:last-child td { border-bottom: 0; }
.loader-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--deep); }
.loader-cell svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.tag-ok { background: #e5f3df; color: #2d6e1c; }
.tag-legacy { background: #eef1f5; color: #455468; }
.tag-port { background: #fdf0dd; color: #8a5208; }
.compat-foot { margin-top: 18px; font-size: .92rem; color: var(--muted); text-align: center; }

/* ================= USE CASES (icon rows with rules) ================= */
.usecase-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; list-style: none; margin: 0; padding: 0; }
.usecase { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px dashed var(--pale-2); transition: transform .25s ease; }
.usecase:hover { transform: translateX(6px); }
.usecase-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--primary-dark); background: linear-gradient(135deg, var(--pale) 50%, var(--pale-2) 50%); clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.usecase-icon svg { width: 30px; height: 30px; }
.usecase h3 { margin-bottom: 4px; }
.usecase p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ================= BENEFITS (statement + list) ================= */
.benefit-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.benefit-statement { position: sticky; top: calc(var(--header-h) + 30px); padding-left: 26px; border-left: 6px solid var(--primary); }
.benefit-statement p { font-size: 1.35rem; font-weight: 500; color: var(--deep); line-height: 1.55; margin: 0 0 18px; }
.benefit-statement small { color: var(--muted); font-size: .95rem; display: block; }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit { display: flex; gap: 20px; padding: 22px 18px; border-radius: var(--radius-s); transition: background .25s ease, transform .25s ease; }
.benefit + .benefit { border-top: 1px solid var(--line); }
.benefit:hover { background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.benefit svg { width: 34px; height: 34px; color: var(--primary); flex: none; margin-top: 2px; }
.benefit h3 { margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ================= INSTALLATION (stepper + folder panel) ================= */
.install-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.stepper { list-style: none; margin: 0; padding: 0; position: relative; }
.stepper::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--pale-2); }
.stepper li { position: relative; padding: 0 0 30px 74px; }
.stepper li:last-child { padding-bottom: 0; }
.step-icon { position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); }
.step-icon svg { width: 22px; height: 22px; }
.stepper h3 { margin-bottom: 4px; padding-top: 10px; }
.stepper p { margin: 0; color: var(--muted); font-size: .96rem; }
.folder-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 28px; box-shadow: var(--shadow-s); position: sticky; top: calc(var(--header-h) + 30px); }
.folder-panel h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.folder-panel h3 svg { width: 22px; height: 22px; color: var(--primary); }
.tree { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.tree li { padding: 6px 0 6px 0; display: flex; align-items: center; gap: 10px; color: var(--deep); }
.tree li.l2 { padding-left: 26px; }
.tree li.l3 { padding-left: 52px; }
.tree svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.tree .hl { font-weight: 600; color: var(--primary); }
.folder-panel p { font-size: .88rem; color: var(--muted); margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ================= DOWNLOAD (banner) ================= */
.download-panel { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 0; background: linear-gradient(120deg, #ffffff 0%, #eef6fe 100%); border: 2px solid var(--pale-2); border-radius: var(--radius-l); overflow: hidden; position: relative; }
.download-panel::after { content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 14px; background: linear-gradient(90deg, var(--pale-2) 0 33%, var(--sky) 33% 66%, var(--primary) 66% 100%); }
.download-media img { width: 100%; height: 100%; object-fit: cover; }
.download-body { padding: 48px 50px; }
.download-body h3 { font-size: 1.5rem; }
.download-body > p { color: var(--muted); }
.dl-meta { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.dl-meta li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.dl-meta svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 3px; }
.dl-note { font-size: .84rem; color: var(--muted); margin: 16px 0 0; }

/* ================= SAFETY (divided strip) ================= */
.safety-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-item { padding: 34px 26px; text-align: center; transition: background .25s ease; }
.safety-item + .safety-item { border-left: 1px solid var(--line); }
.safety-item:hover { background: var(--surface); }
.safety-item svg { width: 40px; height: 40px; color: var(--primary); margin: 0 auto 14px; }
.safety-item h3 { font-size: 1.02rem; }
.safety-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ================= PROS / CONS ================= */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.pc-col { padding: 36px 40px; transition: box-shadow .25s ease; }
.pc-col:hover { box-shadow: inset 0 0 0 2px var(--pale-2); }
.pc-col + .pc-col { border-left: 1px solid var(--line); }
.pc-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; padding-bottom: 16px; border-bottom: 3px solid currentColor; }
.pc-pros h3 { color: var(--grass); }
.pc-cons h3 { color: var(--amber); }
.pc-col h3 svg { width: 28px; height: 28px; }
.pc-col ul { list-style: none; margin: 0; padding: 0; }
.pc-col li { display: flex; gap: 12px; padding: 10px 0; color: var(--text); font-size: .97rem; }
.pc-col li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.pc-pros li svg { color: var(--grass); }
.pc-cons li svg { color: var(--amber); }

/* ================= RELEASE INFO (text + link rows) ================= */
.release-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.release-copy p { color: var(--text); }
.source-links { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.source-links li + li { border-top: 1px solid var(--line); }
.source-links a { display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: center; padding: 20px 6px; color: var(--deep); transition: padding .25s ease, color .25s ease; }
.source-links a:hover { padding-left: 14px; color: var(--primary); }
.source-links .src-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pale); color: var(--primary); }
.source-links .src-icon svg { width: 22px; height: 22px; }
.source-links strong { display: block; font-size: 1rem; }
.source-links small { color: var(--muted); font-size: .86rem; }
.source-links .arrow { width: 22px; height: 22px; color: var(--primary); }

/* ================= TROUBLESHOOTING (tabs) ================= */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.tab-list { display: flex; flex-direction: column; background: #fbfdff; border-right: 1px solid var(--line); }
.tab-btn { display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; border-left: 4px solid transparent; padding: 20px 22px; font-size: .97rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.tab-btn + .tab-btn { border-top: 1px solid var(--line); }
.tab-btn svg { width: 24px; height: 24px; flex: none; }
.tab-btn:hover { color: var(--primary); background: var(--pale); }
.tab-btn[aria-selected="true"] { color: var(--primary); background: var(--surface); border-left-color: var(--primary); }
.tab-panel { padding: 38px 44px; }
.tab-panel h3 { font-size: 1.3rem; }
.tab-panel p { color: var(--text); }
.tab-panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.tab-panel li { margin-bottom: 6px; }
.tab-panel[hidden] { display: none; }

/* ================= GUIDES PREVIEW (feature + stack) ================= */
.guides-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.guide-card { display: block; color: var(--text); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--pale-2); color: var(--text); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card .gc-body { padding: 22px 24px 26px; }
.guide-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: .93rem; margin: 0 0 12px; }
.read-more { font-weight: 600; color: var(--primary); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.read-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.guide-card:hover .read-more svg { transform: translateX(4px); }
.guides-stack { display: grid; gap: 30px; }
.guides-stack .guide-card { display: grid; grid-template-columns: 200px 1fr; }
.guides-stack .guide-card img { height: 100%; aspect-ratio: auto; }
.guides-stack .gc-body { padding: 18px 20px; }
.guides-more { text-align: center; margin-top: 40px; }

/* ================= FAQ (two category columns) ================= */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.faq-cat { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--deep); }
.faq-cat svg { width: 24px; height: 24px; color: var(--primary); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 18px 2px; text-align: left; font-size: 1rem; font-weight: 600; color: var(--deep); cursor: pointer; line-height: 1.45; }
.faq-q:hover { color: var(--primary); }
.faq-q .fq-icon { width: 30px; height: 30px; border-radius: 4px; background: var(--pale); color: var(--primary); display: grid; place-items: center; flex: none; transition: background .2s ease, color .2s ease; }
.faq-q .fq-icon svg { width: 16px; height: 16px; }
.faq-q .v-line { transition: transform .25s ease; transform-origin: center; }
.faq-q[aria-expanded="true"] .fq-icon { background: var(--primary); color: #fff; }
.faq-q[aria-expanded="true"] .v-line { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 2px 20px; color: var(--muted); font-size: .96rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ================= FOOTER ================= */
#site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 64px 0 40px; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 420px; }
.footer-col h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--deep); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: .88rem; color: var(--muted); }
.footer-bottom a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-bottom p { margin: 0; }

/* Scroll to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: var(--radius-s); border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--primary-dark), var(--shadow-m); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 90; }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ================= INNER PAGES ================= */
.page-hero { padding: 56px 0 46px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--pale-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.contact-line { display: inline-flex; align-items: center; gap: 14px; padding: 18px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); font-weight: 600; color: var(--deep); font-size: 1.05rem; }
.contact-line svg { width: 26px; height: 26px; color: var(--primary); }

/* Blog listing */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-grid .guide-card .gc-body { padding: 20px 22px 24px; }

/* Article layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; padding: 50px 0 80px; }
.article-head .breadcrumb ol { justify-content: flex-start; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.article-cover { border-radius: var(--radius-m); border: 1px solid var(--line); margin-bottom: 30px; width: 100%; }
.article-body { max-width: 780px; font-size: 1.02rem; }
.article-body h2 { font-size: 1.6rem; margin-top: 1.7em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article-body ul { padding-left: 22px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body .table-wrap { margin: 0 0 1.4em; }
.article-body table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.article-body th, .article-body td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th { background: #f4f8fd; color: var(--deep); font-weight: 600; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body code { background: var(--pale); padding: 2px 7px; border-radius: 4px; font-size: .9em; color: var(--deep); }
.callout { border-left: 4px solid var(--primary); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 0 0 1.4em; color: var(--text); }
.article-faq .faq-item:first-of-type { border-top: 1px solid var(--line); }
.related-guides { margin-top: 50px; padding-top: 30px; border-top: 2px solid var(--deep); }
.related-guides h2 { margin-top: 0; font-size: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-grid .guide-card .gc-body { padding: 14px 16px 16px; }
.related-grid .guide-card h3 { font-size: .98rem; margin: 0; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--pale-2) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--pale-2); border-radius: 4px; }
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; margin-bottom: 22px; }
.side-block h2 { font-size: 1rem; margin-bottom: 14px; }
.side-cta { background: linear-gradient(140deg, #ffffff, #eaf3fd); text-align: center; }
.side-cta img { width: 54px; height: 50px; margin: 0 auto 10px; }
.side-cta p { font-size: .9rem; color: var(--muted); }
.side-cta .btn { width: 100%; }
.toc ol, .side-links { list-style: none; margin: 0; padding: 0; }
.toc li { border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.toc a:hover, .toc a.is-active { color: var(--primary); }
.toc li:has(a.is-active) { border-color: var(--primary); }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px 0; color: var(--deep); font-size: .88rem; font-weight: 500; line-height: 1.4; }
.side-links a:hover { color: var(--primary); }
.side-links img { width: 72px; height: 41px; object-fit: cover; border-radius: 4px; }

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

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .nav a { padding: 8px 10px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m); padding: 10px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; justify-self: stretch; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta { grid-column: 3; }
  .hero-grid, .about-grid, .install-grid, .release-grid, .benefit-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .benefit-statement, .folder-panel { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .download-media { max-height: 360px; overflow: hidden; }
  .safety-strip { grid-template-columns: 1fr 1fr; }
  .safety-item:nth-child(3) { border-left: 0; }
  .safety-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab-btn { border-left: 0; border-bottom: 3px solid transparent; flex: 1 0 auto; }
  .tab-btn + .tab-btn { border-top: 0; border-left: 1px solid var(--line); }
  .tab-btn[aria-selected="true"] { border-bottom-color: var(--primary); }
  .guides-layout { grid-template-columns: 1fr; }
  .faq-cols { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 38px; }
  .header-cta .btn { padding: 10px 14px; font-size: .86rem; }
  .header-cta .btn svg { display: none; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 34px; height: 31px; }
  .feature-grid, .usecase-list, .pc-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .pc-col + .pc-col { border-left: 0; border-top: 1px solid var(--line); }
  .pc-col { padding: 28px 24px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
  .download-body { padding: 32px 24px; }
  .guides-stack .guide-card { grid-template-columns: 1fr; }
  .guides-stack .guide-card img { aspect-ratio: 16 / 9; }
  .tab-panel { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn, .download-body .btn { width: 100%; white-space: normal; }
}
@media (max-width: 480px) {
  .timeline, .safety-strip { grid-template-columns: 1fr; }
  .safety-item + .safety-item { border-left: 0; border-top: 1px solid var(--line); }
  .stepper li { padding-left: 64px; }
  .hero-trust { gap: 12px 18px; }
}
@media (max-width: 360px) {
  .header-cta .btn { padding: 9px 10px; font-size: .8rem; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.faq-h { margin: 0; font-size: inherit; line-height: inherit; }

/* 2026 refresh: immersive, centered hero; picture stays behind the copy. */
.hero {
  isolation: isolate; min-height: 640px; display:flex; align-items:center;
  padding: 112px 0 104px;
  background: #101b2c;
  color: #fff;
}
.hero::before {
  content: ""; position:absolute; inset:0; z-index:-2;
  background-image: linear-gradient(180deg,rgba(5,16,30,.57),rgba(4,13,25,.8)),
    url("../images/replay-mod-hero.webp");
  background-position:center; background-size:cover;
}
.hero::after {content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at center,transparent 15%,rgba(4,12,23,.4) 100%)}
.hero-grid {display:flex;justify-content:center;align-items:center;text-align:center;}
.hero-copy {max-width:860px;margin-inline:auto;}
.hero h1 {color:#fff;font-size:clamp(2.4rem,4.8vw,4.5rem);line-height:1.13;}
.hero h1 em {color:#8bd2ff;}
.hero-lead {color:#ebf3fd;max-width:720px;margin:0 auto 30px;}
.hero-actions,.hero-trust {justify-content:center;}
.hero-trust li {color:#edf5fe;}
.hero-trust svg {color:#99d8ff;}
.hero-kicker {background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.29);color:#fff;backdrop-filter:blur(6px)}
.hero-kicker span {background:rgba(255,255,255,.2)}
.hero .btn-ghost {background:#fff;color:#17385b;border-color:#fff;}
.hero .btn-ghost:hover {background:#e6f4ff;}
/* Footer: more balanced two-level grid with a softly contrasted brand block. */
#site-footer {background:#0d2135;border-top:0;color:#d8e5f2;}
.footer-top {display:grid;grid-template-columns:minmax(250px,1.7fr) minmax(150px,.8fr) minmax(200px,1fr);gap:clamp(24px,5vw,82px);padding:70px 0 54px;align-items:start;}
.footer-brand {padding:26px 28px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);border-radius:18px;}
.footer-brand .brand {color:#fff;}
.footer-brand p {color:#c5d5e5;max-width:540px;line-height:1.8;}
.footer-col h3 {color:#fff;letter-spacing:.1em;font-size:.98rem;}
.footer-col li {margin-bottom:13px;}
.footer-col a {color:#ceddea;}
.footer-col a:hover {color:#74c8ff;}
.footer-bottom {border-top:1px solid rgba(255,255,255,.16);color:#c1d3e2;align-items:center;padding:24px 0 30px;}
.footer-bottom a {color:#80cbff;}
@media(max-width:980px){.hero-grid {display:flex;}.hero{min-height:570px;padding:90px 0 82px}.footer-top{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1 / -1}}
@media(max-width:680px){.hero{min-height:570px;padding:76px 0}.hero h1{font-size:clamp(2.15rem,8.3vw,3.15rem)}.hero-trust{justify-content:center}.footer-top{grid-template-columns:1fr;gap:36px;padding:54px 0 36px}.footer-brand{grid-column:auto;padding:24px}.footer-bottom{display:block;text-align:center}.footer-bottom p+p{margin-top:9px}}
