/* ==========================================================================
   Gamma Mod — gammamod.com
   Layout: custom reference layout (isometric hero, radial hub, tile bands)
   Font: Poppins (self-hosted in assets/fonts)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- Tokens (change colours here) ---------- */
:root {
  --green: #7209E8;
  --green-btn: #6200D9;
  --green-dark: #5100B5;
  --green-soft: #F1E8FF;
  --teal: #AE16C7;
  --teal-soft: #FAE8FC;
  --blue: #7041EC;
  --blue-btn: #A20AC7;
  --blue-soft: #EEE9FF;
  --amber: #FF8865;
  --amber-dark: #A33E27;
  --amber-soft: #FFF0E9;
  --brown: #BA526F;
  --brown-soft: #FFF0F5;
  --violet: #6900E8;
  --violet-soft: #F1E8FF;
  --rose: #C02487;
  --rose-soft: #FDEAF6;

  --bg: #FCFAFF;
  --bg-soft: #F6F2FC;
  --surface: #FFFFFF;
  --ink: #241333;
  --text: #45364F;
  --muted: #6E6179;
  --border: #EAE1F3;
  --border-strong: #D9C9EB;

  --dark-1: #1F1033;
  --dark-2: #31144D;
  --dark-text: #F2EAFB;
  --dark-muted: #C8B5DD;

  --grad: linear-gradient(90deg, var(--green-btn), var(--blue-btn));
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(62, 24, 92, .06);
  --shadow-md: 0 12px 30px rgba(62, 24, 92, .09);
  --shadow-lg: 0 24px 60px rgba(62, 24, 92, .14);

  --header-h: 72px;
  --container: 1200px;
  --gutter: 20px;
  --font: "Poppins", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::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.7; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--blue-btn); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font-family: var(--font); }
code, kbd { font-family: var(--font); font-size: .88em; background: var(--green-soft); color: var(--green-dark); padding: .12em .5em; border-radius: 6px; font-weight: 600; overflow-wrap: anywhere; }
kbd { background: #fff; border: 1px solid var(--border-strong); box-shadow: 0 2px 0 var(--border-strong); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; transform: translateY(-200%); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { transform: none; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--white { background: #fff; }
.sec-head { max-width: 720px; margin: 0 0 48px; }
.sec-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head p { color: var(--muted); }

/* ---------- Icons ---------- */
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(114, 9, 232, .28); transition: transform .25s ease; }
.ico-tile--green { background: linear-gradient(135deg, #9245DE, var(--green-dark)); }
.ico-tile--amber { background: linear-gradient(135deg, #F2B630, #C98A0C); box-shadow: 0 8px 18px rgba(255, 136, 101, .3); }
.ico-tile--blue { background: linear-gradient(135deg, #9A6AEE, #8714BE); box-shadow: 0 8px 18px rgba(112, 65, 236, .3); }
.ico-tile--brown { background: linear-gradient(135deg, #A9834F, #7A5A2F); box-shadow: 0 8px 18px rgba(186, 82, 111, .3); }
.ico-tile--teal { background: linear-gradient(135deg, #BD46D3, #9015A6); box-shadow: 0 8px 18px rgba(174, 22, 199, .3); }
.ico-tile--violet { background: linear-gradient(135deg, #8172DD, #5A48BF); box-shadow: 0 8px 18px rgba(109, 91, 208, .3); }
.ico-tile--rose { background: linear-gradient(135deg, #D85A53, #A5332E); }

/* ---------- 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.2; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; text-align: center; white-space: nowrap; max-width: 100%; }
.btn .ico { width: 19px; height: 19px; }
.btn-grad, .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(162, 10, 199, .25); }
.btn-grad:hover, .btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(162, 10, 199, .32); }
.btn-line, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-line:hover, .btn-ghost:hover { color: var(--green-dark); border-color: var(--green); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
#site-header { position: sticky; top: 0; z-index: 100; }
.hdr { background: rgba(252, 250, 255, .88); 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; }
.hdr.is-scrolled { box-shadow: 0 8px 26px rgba(62, 24, 92, .08); border-color: var(--border); }
.hdr__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--green); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: .92rem; padding: 8px 11px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a .ico { width: 16px; height: 16px; color: var(--green); opacity: .85; }
.nav a:hover { color: var(--green-dark); background: #fff; }
.nav a.is-active { color: var(--green-dark); background: var(--green-soft); }
.hdr__cta { flex: none; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn .ico { width: 24px; height: 24px; }
.menu-btn .ico-close { display: none; }
.menu-open .menu-btn .ico-open { display: none; }
.menu-open .menu-btn .ico-close { display: block; }
.mnav { display: none; }
@media (max-width: 1100px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: grid; }
  .mnav { display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease; }
  .menu-open .mnav { transform: none; opacity: 1; visibility: visible; }
  .mnav ul { list-style: none; margin: 0; padding: 14px var(--gutter) 22px; display: grid; gap: 4px; }
  .mnav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; }
  .mnav a .ico { width: 18px; height: 18px; color: var(--green); }
  .mnav a:hover, .mnav a.is-active { background: var(--green-soft); color: var(--green-dark); }
  .mnav .btn { width: 100%; margin-top: 10px; color: #fff; justify-content: center; }
  .mnav .btn .ico { color: #fff; }
}

/* ---------- 1. Hero (centered, illustrated background) ---------- */
.hero { padding: 100px 0; position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__copy { position: relative; z-index: 1; width: 100%; max-width: 900px; }
.hero__tag { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--green-dark); background: var(--green-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero__tag .ico { width: 17px; height: 17px; color: var(--amber-dark); }
.hero h1 { margin: 0 auto 24px; max-width: 880px; font-size: clamp(2rem, 4.5vw, 3.6rem); text-wrap: balance; }
.hero__name { display: inline; color: var(--green-dark); }
.hero__lead { font-size: 1.07rem; color: var(--text); max-width: 740px; margin: 0 auto 30px; }
.hero__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero__chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
.hero__chips .ico { width: 16px; height: 16px; color: var(--green); }
.hero .hero__art { position: absolute; inset: 0; z-index: -1; max-width: none; padding: 0; pointer-events: none; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252, 248, 255, .84), rgba(252, 248, 255, .94) 50%, rgba(252, 248, 255, .84)); }
.hero__frame { margin: 0; width: 100%; height: 100%; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__cube { position: absolute; top: -6px; left: 4%; width: 46px; height: 46px; background: linear-gradient(135deg, #A155F4, var(--green-dark)); border-radius: 10px; transform: rotate(45deg) skew(-8deg, -8deg); box-shadow: var(--shadow-md); }
.hero__badge { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.hero__badge b { display: block; font-size: .98rem; color: var(--ink); line-height: 1.2; }
.hero__badge small { display: block; font-size: .76rem; color: var(--muted); }
.hero__badge--a { top: 6%; right: -6px; }
.hero__badge--b { bottom: 4%; left: -10px; }
.hero__badge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.hero__badge-ico .ico { width: 20px; height: 20px; }
.ring { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--green) 0 82%, var(--green-soft) 82% 100%); position: relative; }
.ring::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }

/* ---------- 2. What is (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split__copy p { color: var(--muted); }
.split__art { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); aspect-ratio: 16 / 9; background: var(--amber-soft); }
.split__art img { width: 100%; height: 100%; object-fit: cover; }
.infocard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); margin: 22px 0 18px; }
.infocard > div { flex: 1; min-width: 0; }
.infocard__label { display: block; font-size: .78rem; font-weight: 600; color: var(--green); }
.infocard b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.infocard__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); flex: none; transition: transform .2s; }
.infocard__go:hover { transform: translateX(3px); color: var(--green-dark); }
.infocard__go .ico { width: 18px; height: 18px; }
.usecases { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.usecases li { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
.usecases .ico { width: 16px; height: 16px; color: var(--amber-dark); }

/* ---------- 3. Features hub ---------- */
.hub { display: grid; grid-template-columns: 1fr 340px 1fr; gap: 30px; align-items: center; }
.hub__col { display: grid; gap: 22px; }
.fcard { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCC6F5; }
.fcard:hover .ico-tile { transform: rotate(-6deg) scale(1.05); }
.fcard h3 { font-size: 1.02rem; margin: 0 0 4px; }
.fcard p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.fcard__n { font-size: .72rem; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.hub__col--l .fcard--1 { margin-right: 34px; margin-left: -10px; }
.hub__col--r .fcard--4 { margin-left: 34px; margin-right: -10px; }
.hub__core { position: relative; width: 340px; height: 340px; display: grid; place-items: center; }
.hub__ring { position: absolute; border-radius: 50%; border: 2px dashed #DFCCE9; }
.hub__ring--1 { inset: 0; animation: spin 60s linear infinite; }
.hub__ring--2 { inset: 46px; border-style: dotted; border-color: #DCC6F5; animation: spin 40s linear infinite reverse; }
.hub__dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.hub__dot--1 { top: 14%; left: 12%; background: var(--green); }
.hub__dot--2 { top: 10%; right: 18%; background: var(--blue); }
.hub__dot--3 { bottom: 12%; left: 20%; background: var(--amber); }
.hub__dot--4 { bottom: 16%; right: 10%; background: var(--teal); }
.hub__center { position: relative; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #F7EEFC); box-shadow: 0 20px 50px rgba(114, 9, 232, .2), inset 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 14px rgba(241, 232, 255, .7); display: grid; place-items: center; align-content: center; text-align: center; gap: 4px; }
.hub__center img { width: 56px; height: 56px; margin: 0 auto 6px; }
.hub__center b { color: var(--green-dark); font-size: 1.12rem; line-height: 1.1; }
.hub__center small { color: var(--muted); font-size: .76rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. How it works (zig-zag) ---------- */
.hsteps { position: relative; }
.hsteps__path { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 120px; }
.hsteps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.hstep { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hstep--2, .hstep--4 { padding-top: 50px; }
.hstep__num { font-size: .8rem; font-weight: 700; color: var(--green); letter-spacing: .08em; margin-bottom: 8px; }
.hstep__node { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #F3EBFC); color: var(--green-dark); box-shadow: 0 12px 26px rgba(62, 24, 92, .12), 0 0 0 8px rgba(255, 255, 255, .8); position: relative; z-index: 1; transition: transform .25s; }
.hstep:hover .hstep__node { transform: translateY(-4px); }
.hstep__node .ico { width: 30px; height: 30px; }
.hstep__card { margin-top: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 18px 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; width: 100%; }
.hstep__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hstep__card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.hstep__card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---------- Dark bands (compatibility + download, as in the reference) ---------- */
.band { position: relative; overflow: hidden; color: var(--dark-text); padding: 96px 0; }
.band h2 { color: #fff; }
.band p { color: var(--dark-muted); }
.band a { color: #DEBEFF; text-decoration: underline; text-underline-offset: 3px; }
.band a.btn { text-decoration: none; color: #fff; }
.band--compat { background: radial-gradient(520px 360px at 0% 0%, rgba(112, 65, 236, .45), transparent 70%), radial-gradient(620px 420px at 78% 40%, rgba(142, 65, 235, .22), transparent 70%), linear-gradient(180deg, var(--dark-1), var(--dark-2)); }
.band--compat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background-image: linear-gradient(rgba(182, 141, 223, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 141, 223, .12) 1px, transparent 1px); background-size: 60px 30px; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); pointer-events: none; }
.band--download { background: radial-gradient(560px 400px at 0% 100%, rgba(112, 65, 236, .55), transparent 70%), radial-gradient(600px 420px at 100% 0%, rgba(142, 65, 235, .25), transparent 70%), linear-gradient(110deg, #2D1741, #3A2F17 55%, #321C49); }
.band__grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.band__grid--dl { grid-template-columns: 1fr 1.05fr; }
.band__facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.band__facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #fff; font-size: .95rem; }
.band__facts .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #C58BFF; }
.band__facts li:nth-child(2) .ico { color: #FFB3A8; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.layer { display: grid; grid-template-columns: 200px 70px 1fr; align-items: center; margin-top: -8px; }
.layer:first-child { margin-top: 0; }
.layer__tile { position: relative; width: 200px; height: 120px; display: block; transition: transform .3s ease; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.layer:hover .layer__tile { transform: translateY(-6px); }
.layer__tile svg { width: 200px; height: 120px; display: block; }
.layer__ico { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scaleY(.8); color: #fff; }
.layer__ico .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.layer__line { height: 2px; background: repeating-linear-gradient(90deg, rgba(242, 234, 251, .5) 0 5px, transparent 5px 10px); position: relative; }
.layer__line::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.layer__txt { padding: 10px 0 10px 14px; }
.layer__tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 2px 10px; border-radius: 6px; margin-bottom: 6px; }
.layer__txt h3 { color: #fff; font-size: 1.04rem; margin: 0 0 4px; }
.layer__txt p { margin: 0; font-size: .86rem; line-height: 1.5; }

/* ---------- Setup guide (tabs) ---------- */
.setup { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.setup__side p { color: var(--muted); }
.stabs { display: grid; gap: 12px; margin-top: 24px; }
.stab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: .96rem; font-weight: 600; cursor: pointer; transition: all .25s ease; box-shadow: var(--shadow-sm); }
.stab > span:nth-child(2) { flex: 1; }
.stab__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.stab__ico .ico { width: 18px; height: 18px; }
.stab > .ico { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.stab:hover { border-color: #DCC6F5; transform: translateX(3px); }
.stab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(162, 10, 199, .22); }
.stab.is-active .stab__ico { background: rgba(255, 255, 255, .2); color: #fff; }
.stab.is-active > .ico { color: #fff; transform: translateX(3px); }
.setup__stage { position: relative; }
.setup__stage::before { content: ""; position: absolute; inset: 30px 0 -20px 40px; background: radial-gradient(circle at 80% 20%, rgba(142, 65, 235, .25), transparent 60%); filter: blur(10px); z-index: 0; }
.spanel { position: relative; z-index: 1; background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-lg); animation: fadeUp .4s ease; }
.spanel[hidden] { display: none; }
.spanel__top { display: flex; align-items: flex-start; justify-content: space-between; }
.spanel__num { font-size: 5rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #CFB9DF; }
.spanel__tile { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 34px rgba(162, 10, 199, .28), 0 0 0 10px rgba(241, 232, 255, .8); }
.spanel__tile .ico { width: 34px; height: 34px; }
.spanel__label { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); margin: 6px 0 6px; }
.spanel h3 { font-size: 1.4rem; margin-bottom: 10px; }
.spanel p { color: var(--muted); }
.spanel__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.spanel__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: .94rem; }
.spanel__list .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); stroke-width: 2.6; }
.spanel__bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.spanel__bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Install (staircase) ---------- */
.install { position: relative; }
.install__head { max-width: 560px; margin-bottom: 30px; }
.install__head p { color: var(--muted); }
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; }
.stair { position: relative; border-radius: var(--radius-lg); padding: 20px 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.stair:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stair--1 { min-height: 210px; }
.stair--2 { min-height: 250px; background: #FDFCFF; }
.stair--3 { min-height: 290px; background: linear-gradient(180deg, #FCF7FF, #F9ECF8); }
.stair--4 { min-height: 335px; background: linear-gradient(180deg, #AA6AE6, #8338D1); color: #fff; border-color: transparent; }
.stair--5 { min-height: 380px; background: linear-gradient(180deg, #A43AC1, #8927A5); color: #fff; border-color: transparent; }
.stair--4::before, .stair--5::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.stair > * { position: relative; }
.stair__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: auto; }
.stair--4 .stair__ico, .stair--5 .stair__ico { background: rgba(255, 255, 255, .2); color: #fff; }
.stair__ico .ico { width: 21px; height: 21px; }
.stair__n { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin: 18px 0 4px; }
.stair h3 { font-size: 1rem; margin: 0 0 6px; }
.stair p { margin: 0; font-size: .87rem; line-height: 1.55; color: var(--muted); }
.stair--4 .stair__n, .stair--5 .stair__n, .stair--4 h3, .stair--5 h3 { color: #fff; }
.stair--4 p, .stair--5 p { color: rgba(255, 255, 255, .88); }

/* ---------- Download band ---------- */
.dl-chips { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: #EEE9FF; background: rgba(112, 65, 236, .16); border: 1px solid rgba(181, 132, 244, .38); border-radius: 999px; padding: 7px 14px; }
.dl-chips .ico { width: 16px; height: 16px; color: #D3B5FF; }
.band__art { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(194, 144, 255, .35); box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 30px 70px rgba(0, 0, 0, .45), 0 0 60px rgba(142, 65, 235, .18); aspect-ratio: 16 / 9; background: #180D25; }
.band__art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Safe setup ---------- */
.section--stripes { background: repeating-linear-gradient(135deg, rgba(255, 136, 101, .04) 0 2px, transparent 2px 22px), linear-gradient(180deg, #FCF8FF, #FCF3FA); }
.safe-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.emblem { position: relative; width: 300px; height: 300px; margin: 0 auto; display: grid; place-items: center; }
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 58%, #fff 59%, #fff 70%, transparent 71%), conic-gradient(from 0deg, #F2C84B, #FF8865, #F7DC8C, #FF8865, #F2C84B); box-shadow: var(--shadow-lg); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.emblem__ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px dotted rgba(255, 255, 255, .8); }
.emblem__core { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #A155F4, var(--green-dark)); color: #fff; box-shadow: 0 18px 40px rgba(81, 0, 181, .35), inset 0 0 0 6px rgba(255, 255, 255, .25); }
.emblem__core .ico { width: 60px; height: 60px; stroke-width: 1.8; }
.emblem__orb { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--green-dark); box-shadow: var(--shadow-md); }
.emblem__orb .ico { width: 20px; height: 20px; }
.emblem__orb--1 { top: 12%; left: -6px; }
.emblem__orb--2 { top: 50%; right: -14px; color: var(--blue-btn); }
.emblem__orb--3 { bottom: 4%; left: 14%; color: var(--amber-dark); }
.safe-copy p { color: var(--muted); }
.safes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.safe { display: flex; align-items: stretch; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.safe:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.safe--2 { margin-left: 22px; }
.safe--3 { margin-left: 44px; }
.safe__ico { width: 62px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, var(--teal), var(--green-dark)); color: #fff; }
.safe__ico .ico { width: 24px; height: 24px; }
.safe > div { flex: 1; padding: 14px 0; min-width: 0; }
.safe h3 { font-size: 1rem; margin: 0 0 2px; }
.safe p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.safe__ok { align-self: center; margin-right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-dark); flex: none; }
.safe__ok .ico { width: 16px; height: 16px; stroke-width: 2.8; }

/* ---------- Pros & cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; max-width: 1000px; margin: 0 auto; }
.pc__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .25s, box-shadow .25s; }
.pc__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc__head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 22px; color: #fff; font-size: 1.06rem; }
.pc__card--pro .pc__head { background: linear-gradient(90deg, var(--green-dark), var(--teal) 70%, var(--blue-btn)); }
.pc__card--con .pc__head { background: linear-gradient(90deg, #B97A06, var(--amber) 60%, #F2C84B); color: #fff; }
.pc__head-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.pc__head-ico .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.pc__list { list-style: none; padding: 18px; margin: 0; display: grid; gap: 10px; }
.pc__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.pc__list .mk { width: 26px; height: 26px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.pc__list .mk .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.pc__card--pro .mk { border-radius: 50%; background: var(--green); color: #fff; }
.pc__card--con .mk { border-radius: 7px; background: var(--amber-soft); color: var(--amber-dark); border: 1px solid #F1D592; }
.pc__vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green), var(--blue), var(--amber), var(--green)); color: #fff; font-weight: 800; font-size: .86rem; box-shadow: 0 0 0 6px #fff, var(--shadow-md); z-index: 1; }

/* ---------- Common fixes ---------- */
.fix-head { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 36px; }
.fix-head h2 { margin: 0; }
.fix-head p { margin: 0; color: var(--muted); }
.fixes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fix { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px minmax(0, 1.25fr); align-items: center; }
.fix__num { font-size: 2.3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.3px #CFB9DF; line-height: 1; }
.fix__prob { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.fix:hover .fix__prob { transform: translateX(3px); box-shadow: var(--shadow-md); }
.fix__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-dark); flex: none; }
.fix__ico .ico { width: 20px; height: 20px; }
.fix__tag { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); }
.fix__prob h3 { margin: 0; font-size: .98rem; }
.fix__link { position: relative; height: 26px; display: flex; align-items: center; justify-content: flex-end; }
.fix__link i { position: absolute; left: 6px; right: 26px; top: 50%; border-top: 2px dotted var(--border-strong); }
.fix__link .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 2.6; position: relative; }
.fix__sol { display: flex; align-items: center; gap: 12px; background: var(--teal-soft); border: 1px solid #EFD2F6; border-radius: 14px; padding: 14px 16px; }
.fix__sol > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: #fff; color: var(--teal); flex: none; stroke-width: 2.6; }
.fix__sol p { margin: 0; font-size: .9rem; color: var(--text); line-height: 1.55; }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.gcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gcard__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gcard:hover .gcard__img img { transform: scale(1.04); }
.gcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gcard__body h3 { font-size: 1.05rem; margin: 8px 0 14px; }
.gcard__body h3 a { color: var(--ink); }
.gcard__body h3 a:hover { color: var(--green-dark); }

/* ---------- FAQ ---------- */
.faq-pills { position: relative; isolation: isolate; display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: -18px auto 36px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }
.faq-pills::before { content: ""; position: absolute; z-index: -1; left: 0; top: var(--pill-top, 6px); width: var(--pill-width, 0px); height: var(--pill-height, 0px); transform: translateX(var(--pill-left, 6px)); background: var(--grad); border-radius: 999px; transition: transform .3s ease, width .3s ease, top .3s ease, height .3s ease; }
.faq-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--text); font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: color .2s; }
.faq-pill .ico { width: 17px; height: 17px; }
.faq-pill.is-active { background: var(--grad); color: #fff; }
.faq-pills.has-slider .faq-pill.is-active { background: transparent; }
.faq-pill:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.faq-col__title { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 14px; color: var(--ink); }
.faq-col__title .ico { width: 20px; height: 20px; color: var(--green); }
.faq-col.is-active .faq-col__title { color: var(--green-dark); }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; transition: box-shadow .25s, border-color .25s; }
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: #E7D9F8; }
.faq-h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: 0; padding: 15px 16px; text-align: left; cursor: pointer; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.45; border-radius: 14px; }
.faq-q > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.faq-q:hover { color: var(--green-dark); }
.faq-ic { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-soft); color: var(--muted); display: grid; place-items: center; transition: all .25s; }
.faq-ic .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.faq-ic .v { transition: opacity .2s; }
.faq-item.is-open .faq-ic { background: var(--green); color: #fff; }
.faq-item.is-open .faq-ic .v { opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .3s ease; }
.faq-a__in { padding: 0 16px 16px; color: var(--muted); font-size: .93rem; }
.faq-a__in p { margin: 0; }

/* ---------- Footer ---------- */
.ftr { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 0; }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.ftr__brand p { color: var(--muted); font-size: .92rem; margin: 16px 0 0; max-width: 440px; }
/* Logo wordmark in the footer: readable normal state and a distinct hover state. */
.ftr__brand .brand { color: var(--ink); font-size: 1.2rem; transition: color .2s ease; }
.ftr__brand .brand span b { color: var(--green); transition: color .2s ease; }
.ftr__brand .brand:hover, .ftr__brand .brand:focus-visible { color: var(--green-dark); }
.ftr__brand .brand:hover span b, .ftr__brand .brand:focus-visible span b { color: var(--amber-dark); }
.ftr h2 { font-size: .95rem; color: var(--ink); margin: 0 0 14px; font-weight: 600; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.ftr a:hover { color: var(--green-dark); text-decoration: none; }
.ftr__bar { border-top: 1px solid var(--border); padding: 20px 0 26px; text-align: center; font-size: .87rem; color: var(--muted); }
.ftr__bar p { margin: 0; }
.ftr__bar .ftr__disclaimer { margin-top: 6px; }
.ftr__bar a { color: var(--green-dark); font-weight: 600; font-size: .87rem; }
@media (max-width: 760px) {
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ftr__top { grid-template-columns: 1fr; gap: 26px; }
}
/* ---------- Scroll to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 26px rgba(162, 10, 199, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 48px 0 36px; background: radial-gradient(700px 300px at 85% 0%, rgba(142, 65, 235, .14), transparent 70%), radial-gradient(500px 260px at 0% 0%, rgba(255, 136, 101, .14), transparent 70%), var(--bg); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.page-hero p { color: var(--muted); max-width: 720px; font-size: 1.04rem; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-dark); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; width: fit-content; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--green-dark); }
.more .ico { width: 18px; height: 18px; transition: transform .2s; }
.more:hover .ico { transform: translateX(3px); }
.prose { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(114, 9, 232, .4); }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); max-width: 100%; margin: 1.2em 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.callout { display: flex; gap: 12px; border-radius: 14px; padding: 14px 18px; margin: 1.3em 0; background: var(--green-soft); border: 1px solid #E1D1F5; font-size: .95rem; }
.callout .ico { color: var(--green-dark); margin-top: 3px; }
.callout--amber { background: var(--amber-soft); border-color: #F1D592; }
.callout--amber .ico { color: var(--amber-dark); }
.callout p { margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; padding: 10px 0 90px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--bg-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); margin-top: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 16px; height: 16px; color: var(--green); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.side-box h2 { font-size: 1rem; margin: 0 0 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-box li a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: .9rem; line-height: 1.45; }
.side-box li a:hover { background: var(--bg-soft); color: var(--green-dark); }
.side-box--cta { background: linear-gradient(160deg, var(--green-soft), #fff); }
.side-box--cta p { font-size: .9rem; color: var(--muted); }
.side-box--cta .btn { width: 100%; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--green-dark); }
.related { margin-top: 26px; }
.related h2 { font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #E7D9F8; }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3, .post-card__body h2.h3 { font-size: 1.08rem; margin: 8px 0; }
.post-card__body h3 a, .post-card__body h2 a { color: var(--ink); }
.post-card__body h3 a:hover, .post-card__body h2 a:hover { color: var(--green-dark); }
.post-card__body p { color: var(--muted); font-size: .93rem; }
.related-grid .post-card__body { padding: 14px 16px 16px; }
.related-grid .post-card__body h3 { font-size: .95rem; margin: 6px 0 0; }
.post-card--feature .post-card__body h2 { font-size: 1.45rem; margin: 10px 0; }
.post-list { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 4px; align-content: space-between; box-shadow: var(--shadow-sm); }
.post-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; transition: background .2s, transform .2s; }
.post-row:hover { background: var(--bg-soft); transform: translateX(3px); }
.post-row img { width: 112px; height: 63px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.post-row h2 a, .post-row h3 a { color: var(--ink); }
.post-row h2 a:hover, .post-row h3 a:hover { color: var(--green-dark); }
.post-row p { margin: 0; font-size: .82rem; color: var(--muted); }
.blog-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-bottom: 22px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-grid > .post-card { min-width: 0; }
.blog-grid .post-card__body .more { margin-top: auto; align-self: flex-start; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.email-box { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 16px 0; }
.email-box strong { font-size: 1.12rem; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.hero__ctas--center { justify-content: center; }

/* Grid children may contain wide tables or long words: let them shrink */
.hero__grid > *, .split > *, .band__grid > *, .setup > *, .safe-wrap > *, .article-layout > *, .blog-top > *, .contact-grid > *, .faq-grid > *, .pc > *, .fix > * { min-width: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hub { grid-template-columns: 1fr 260px 1fr; gap: 18px; }
  .hub__core { width: 260px; height: 260px; }
  .hub__center { width: 160px; height: 160px; }
  .hub__col--l .fcard--1, .hub__col--r .fcard--4 { margin: 0; }
  .layer { grid-template-columns: 160px 40px 1fr; margin-top: -4px; }
  .layer__tile, .layer__tile svg { width: 160px; height: 96px; }
}
@media (max-width: 980px) {
  .section, .band { padding: 72px 0; }
  .hero__grid, .split, .setup, .safe-wrap, .band__grid, .band__grid--dl { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 640px; }
  .hub { grid-template-columns: 1fr 1fr; }
  .hub__core { grid-column: 1 / -1; grid-row: 1; margin: 0 auto 10px; }
  .hsteps__path { display: none; }
  .hsteps__list { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .hstep--2, .hstep--4 { padding-top: 0; }
  .stairs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .stair { min-height: 0 !important; }
  .stair__ico { margin-bottom: 0; }
  .fix-head { grid-template-columns: 1fr; gap: 10px; }
  .fix { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; }
  .fix__link { display: none; }
  .fix__sol { grid-column: 2; }
  .guides, .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .article-layout, .blog-top { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .emblem { width: 240px; height: 240px; }
  .emblem__core { width: 120px; height: 120px; }
}
@media (max-width: 760px) {
  .pc { grid-template-columns: 1fr; gap: 22px; }
  .pc__vs { position: static; transform: none; margin: -8px auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-col { display: none; }
  .faq-col.is-active { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; --gutter: 16px; }
  body { font-size: 15.5px; }
  .section, .band { padding: 58px 0; }
  .hero { padding: 64px 0; }
  .hero__lead { font-size: 1rem; margin-bottom: 22px; }
  .hero__ctas .btn { width: 100%; }
  .hero__art { padding: 10px 6px 26px; }
  .hero__badge { padding: 9px 12px; border-radius: 14px; gap: 9px; }
  .hero__badge-ico, .ring { width: 32px; height: 32px; }
  .ring::after { inset: 6px; }
  .hero__badge b { font-size: .86rem; }
  .hero__badge--a { top: 0; right: 0; }
  .hero__badge--b { bottom: 0; left: 0; }
  .hero__cube { display: none; }
  .hub { grid-template-columns: 1fr; }
  .hub__core { width: 220px; height: 220px; }
  .hub__center { width: 140px; height: 140px; }
  .hub__center img { width: 40px; height: 40px; }
  .hsteps__list { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 110px 1fr; margin-top: 0; }
  .layer__tile, .layer__tile svg { width: 110px; height: 66px; }
  .layer__ico .ico { width: 22px; height: 22px; }
  .layer__line { display: none; }
  .layers { gap: 12px; }
  .spanel { padding: 24px; }
  .spanel__num { font-size: 3.6rem; }
  .spanel__tile { width: 60px; height: 60px; border-radius: 18px; }
  .stairs { grid-template-columns: 1fr; }
  .safe--2, .safe--3 { margin-left: 0; }
  .safe__ico { width: 52px; }
  .fix { grid-template-columns: 1fr; }
  .fix__num { font-size: 1.7rem; }
  .fix__sol { grid-column: auto; }
  .guides, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .faq-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .faq-pills::before, .faq-pill { border-radius: 13px; }
  .faq-pill { min-width: 0; padding: 10px; font-size: .8rem; line-height: 1.4; text-align: center; }
  .faq-pill .ico { flex: none; }
  .post-row { grid-template-columns: 88px 1fr; }
  .post-row img { width: 88px; height: 50px; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 34px; height: 34px; }
  .btn-lg { padding: 15px 22px; }
  .side-box--cta .btn, .band .btn { white-space: normal; }
  th, td { padding: 11px 12px; }
}
@media (max-width: 360px) {
  h1 { font-size: 1.8rem; }
  .emblem { width: 210px; height: 210px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .faq-q { padding: 14px 12px; gap: 8px; }
  #faq-cat-2 .faq-q { font-size: .78rem; }
}
@media (max-width: 640px) {
  #faq-cat-2 .faq-q { font-size: clamp(.73rem, 3.2vw, .9rem); gap: 8px; padding: 14px 12px; }
  #faq-cat-2 .faq-ic { width: 24px; height: 24px; }
}

/* Keep content readable when scripting is disabled or fails to load. */
html:not(.js) .faq-a { height: auto; }
html:not(.js) .faq-col { display: block; }
html:not(.js) .spanel[hidden] { display: block; }
html:not(.js) .faq-pills, html:not(.js) .stabs { display: none; }
@media (max-width: 1100px) {
  html:not(.js) .hdr { position: static; }
  html:not(.js) .mnav { position: static; display: block; opacity: 1; visibility: visible; transform: none; max-height: none; }
  html:not(.js) .menu-btn { display: none; }
}
