/* ── Service pages ─────────────────────────────────────────── */
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,0.85); }
.crumbs span { margin: 0 6px; }
#hero.page { text-align: left; padding: 64px 0 60px; }
#hero.page h1 { margin: 0 0 18px; max-width: 820px; }
#hero.page p { margin: 0 0 28px; max-width: 700px; }
#hero.page .btn-group { justify-content: flex-start; }
.price-line { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.price-line span { padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); font-size: 0.9rem; }
.price-line b { color: #fff; }

.pg { padding: 64px 0; }
.pg.alt { background: var(--bg-alt); }
.pg h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.pg .lead { color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.pg p { max-width: 760px; }
.pg p + p { margin-top: 12px; }

.bullets { list-style: none; display: grid; gap: 12px; max-width: 820px; }
.bullets li { position: relative; padding-left: 30px; }
.bullets li::before { content: ""; position: absolute; left: 6px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.bullets.no li::before { background: none; border: 2px solid var(--muted); width: 7px; height: 7px; }
.bullets b { font-weight: 700; }

.map { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 620px; }
.map th, .map td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.map th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: #faf9f9; }
.map tr:last-child td { border-bottom: none; }
.map td:first-child { font-weight: 700; }
.map td:last-child { color: var(--accent-dk); }

.gets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.get { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.pg.alt .get { background: var(--bg); }
.get h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.get p { color: var(--muted); font-size: 0.92rem; }

.timeline { list-style: none; display: grid; gap: 0; max-width: 820px; border-left: 3px solid var(--accent); }
.timeline li { padding: 0 0 22px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--accent); }
.timeline .when { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.timeline h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.timeline p { color: var(--muted); font-size: 0.93rem; }

.price-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.price-box .big { background: #1a1a2e; color: #fff; border-radius: var(--radius); padding: 26px; }
.price-box .big .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-box .big p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-top: 8px; }

.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.pg.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related a { display: block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.related a:hover { text-decoration: none; box-shadow: 0 8px 28px rgba(73,80,188,.12); }
.related b { display: block; }
.related span { color: var(--muted); font-size: 0.88rem; }

.sources { font-size: 0.82rem; color: var(--muted); }
.sources ol { padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; }
.sources a { color: var(--muted); text-decoration: underline; word-break: break-word; }

.offer .more { margin-top: 12px; font-size: 0.88rem; font-weight: 600; }
.offer.dark .more { color: #aab0ff; }

@media (max-width: 768px) {
  .price-box { grid-template-columns: 1fr; }
  .pg { padding: 48px 0; }
}

/* Tables → stacked cards on phones, so the last (key) column is not hidden behind a scroll */
@media (max-width: 640px) {
  .map { min-width: 0; }
  .map thead { display: none; }
  .map, .map tbody, .map tr, .map td { display: block; width: 100%; }
  .map tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .map tr:last-child { border-bottom: none; }
  .map td { padding: 2px 0; border: none; }
  .map td:first-child { font-size: 1rem; margin-bottom: 4px; }
  .map td:nth-child(2) { color: var(--muted); font-size: 0.9rem; }
  .map td:last-child { margin-top: 4px; }
}

/* ── Visual layer v3: icons, in-short, flow diagram, timeline, sub-nav ── */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(73,80,188,.09); color: var(--accent); margin-bottom: 12px; }
.ico-badge .ico { width: 24px; height: 24px; }
.offer .ico-badge { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.offer.dark .ico-badge { background: rgba(170,176,255,.14); color: #aab0ff; }
.offer .more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* In short */
.inshort { margin-top: -38px; position: relative; z-index: 2; }
.inshort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inshort-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(26,26,46,.08); }
.inshort-card .lbl { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 8px; }
.inshort-card p { font-size: .98rem; line-height: 1.55; }
.inshort-card b { color: var(--text); }

/* Section sub-nav */
.subnav { position: sticky; top: 76px; z-index: 50; background: rgba(246,244,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; font-size: .86rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 99px; }
.subnav a:hover { background: rgba(73,80,188,.08); color: var(--accent); text-decoration: none; }
.subnav a.cta { margin-left: auto; background: var(--accent); color: #fff; }
section[id] { scroll-margin-top: 140px; }

/* Before → after flow */
.flow { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0; align-items: stretch; }
.flow-head { padding: 14px 18px; border-radius: 14px 14px 0 0; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.flow-head small { display: block; font-weight: 500; font-size: .8rem; opacity: .75; }
.flow-head.from { background: #ecebef; color: #4a4a5e; }
.flow-head.to { background: var(--accent); color: #fff; }
.flow-cell { padding: 13px 18px; font-size: .93rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-alt); display: flex; flex-direction: column; justify-content: center; }
.flow-cell b { font-size: .95rem; }
.flow-cell span { color: var(--muted); font-size: .85rem; }
.flow-cell.from { color: #555570; background: #f7f6f8; }
.flow-cell.from b { color: #4a4a5e; text-decoration: line-through; text-decoration-color: rgba(85,85,112,.35); }
.flow-cell.to { border-color: rgba(73,80,188,.35); }
.flow-cell.to b { color: var(--accent-dk); }
.flow-cell.last { border-bottom: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.flow-cell.to.last { border-bottom-color: rgba(73,80,188,.35); }
.flow-arrow { display: grid; place-items: center; color: var(--accent); }
.flow-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-row-sep { grid-column: 1 / -1; height: 0; }
.flow .div { border-top: 1px dashed var(--border); }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr 34px 1fr; }
  .flow-head { font-size: .88rem; padding: 12px; }
  .flow-head .ico { display: none; }
  .flow-cell { padding: 10px 10px; font-size: .85rem; }
  .flow-cell span { display: none; }
  .flow-arrow svg { width: 18px; height: 18px; }
}

/* Cards with icons */
.get .ico-badge { width: 40px; height: 40px; border-radius: 10px; }

/* Collapsible block */
details.fold { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: var(--bg-alt); }
details.fold summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; }
details.fold[open] summary { margin-bottom: 12px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; justify-content: center; padding: 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(26,26,46,.25); }
  .mobile-cta:hover { text-decoration: none; }
  footer { padding-bottom: 84px; }
  .inshort-grid { grid-template-columns: 1fr; }
  .inshort { margin-top: -28px; }
  .subnav { top: 76px; }
}

/* Home: "What changed" timeline */
.tl { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(73,80,188,.25), var(--accent)); }
.tl-item { position: relative; padding-top: 52px; }
.tl-dot { position: absolute; top: 14px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); }
.tl-dot .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.tl-year { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.tl-item h4 { font-size: 1rem; margin: 4px 0 6px; }
.tl-item p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.tl-item .repl { margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-dk); }
.tl-item.now .tl-dot { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .tl { grid-template-columns: 1fr; gap: 0; padding-left: 42px; }
  .tl::before { left: 13px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, rgba(73,80,188,.25), var(--accent)); }
  .tl-item { padding: 0 0 24px; }
  .tl-dot { left: -42px; top: 0; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; text-align: left; }
.stat b { display: block; font-size: 1.45rem; letter-spacing: -.02em; color: #fff; }
.stat span { font-size: .84rem; color: rgba(255,255,255,.75); }
@media (max-width: 768px) { .stats { grid-template-columns: 1fr 1fr; } }
.tl-item .repl { display: inline-block; }
section.inshort { padding: 0 0 36px; }
@media (max-width: 768px) {
  .mobile-cta { opacity: 0; transform: translateY(120%); transition: opacity .2s, transform .2s; pointer-events: none; }
  .mobile-cta.show { opacity: 1; transform: none; pointer-events: auto; }
  section.inshort { padding-bottom: 24px; }
}
@media (max-width: 768px) { .stat b { font-size: 1.12rem; } .stat { padding: 12px; } }

/* Tool links and /tools/ directory */
a.tool { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--accent); }
a.tool:hover { color: var(--accent); text-decoration: none; }
.flow-cell a.tool, .get a.tool { color: inherit; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tcard { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; scroll-margin-top: 140px; }
.pg.alt .tcard { background: var(--bg); }
.tcard h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tcard p { color: var(--muted); font-size: .93rem; flex: 1; }
.tcard:target { box-shadow: 0 0 0 3px rgba(73,80,188,.35); }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.badge { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(73,80,188,.09); color: var(--accent-dk); }
.badge.alt { background: #efeef2; color: #4a4a5e; }
.tused { font-size: .85rem; color: var(--muted); }
.tused a { font-weight: 600; }
.tlink { margin-top: 10px; font-size: .86rem; font-weight: 600; }
a.badge:hover { text-decoration: none; background: rgba(73,80,188,.18); }
.map.lic td:last-child { color: var(--text); font-weight: 400; }
.map.lic .fam { font-size: .8rem; color: var(--muted); font-weight: 600; }
.map.lic tr:target { background: rgba(73,80,188,.07); }
ol.sources { font-size: .82rem; color: var(--muted); padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; }
ol.sources a { color: var(--muted); text-decoration: underline; }
@media (max-width: 640px) { .map.lic td:nth-child(2) { color: var(--text); } }
.map.lic tr[id] { scroll-margin-top: 150px; }

/* Guides */
.guide-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.article { max-width: 780px; }
.article h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.article p { margin: 0 0 12px; }
.article pre { background: #1a1a2e; color: #e8e8f4; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.55; margin: 6px 0 16px; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article p code, .article li code { background: rgba(73,80,188,.08); padding: 1px 5px; border-radius: 4px; }
.callout { border-left: 3px solid var(--accent); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.tiny { font-size: .82rem; color: var(--muted); margin-top: 24px; }
.guide-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.guide-cta span { color: var(--muted); flex: 1; min-width: 180px; }
.guide-cta .btn { background: var(--accent); color: #fff; }
.article .sources { margin-top: 18px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gcard { display: block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: var(--text); }
.gcard:hover { text-decoration: none; box-shadow: 0 8px 28px rgba(73,80,188,.12); }
.gcard b { display: block; margin-bottom: 6px; }
.gcard span { color: var(--muted); font-size: .92rem; }

/* code snippets on generated pages (scope script) */
.pg pre { background: #1a1a2e; color: #e8e8f4; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.55; margin: 6px 0 18px; }
.pg h3.code-lbl { font-size: 1rem; margin: 18px 0 6px; }
