/* SmartBudget guide - extends /blog/blog.css (header, footer, tokens, typography) */
.g-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.g-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; background: linear-gradient(135deg, #F8F5FF 0%, #ECE6FD 55%, #E0D6FA 100%); border-radius: 32px; padding: 44px 44px 36px; margin: 28px 0 28px; overflow: hidden; }
.g-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.g-hero .lede { font-size: 1.25rem; line-height: 1.6; color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.g-hero .phone { max-width: 250px; transform: rotate(-4deg); margin-top: 10px; margin-bottom: -60px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--bg); color: var(--ink); }
.five { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); padding: 6px 18px; border-radius: 999px; font-weight: 800; font-size: 1rem; margin-bottom: 18px; }

.toc-box { margin: 0 0 32px; }
.toc-box h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 14px; }
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; font-size: 1.02rem; transition: transform .2s ease, border-color .2s ease; }
.toc a:hover { transform: translateY(-2px); border-color: var(--green); color: var(--ink); }
.toc .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #FFFFFF; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.toc .soon { font-weight: 500; color: var(--muted); font-size: .88rem; display: block; }

.chapter { background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 36px; margin: 0 0 28px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.ch-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ch-num { flex: none; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #7C3AED, #4C1D95); color: #FFFFFF; display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; }
.ch-head h2 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); line-height: 1.2; font-weight: 900; margin: 0; letter-spacing: -.3px; flex: 1 1 260px; }
.ch-time { background: var(--bg-soft); color: var(--green-dark); font-weight: 800; font-size: .95rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.chapter h3 { font-size: 1.3rem; font-weight: 800; margin: 1.5em 0 .5em; }
.chapter p { margin-bottom: 1em; color: #2B2750; }
.chapter ul, .chapter ol { color: #2B2750; }

.block { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin: 26px 0; }
.block.wide { grid-template-columns: minmax(0, 1fr); }
.block.two { grid-template-columns: minmax(0, 1fr) 300px 300px; }
.figs { display: flex; flex-direction: column; gap: 22px; }
.block.two .figs { display: contents; }
.figs.sticky { position: sticky; top: 20px; }
figure.fig { margin: 0; text-align: center; }
figure.fig figcaption { font-size: .95rem; color: var(--muted); margin-top: 12px; line-height: 1.5; padding: 0 6px; }
.phone { border: 9px solid #1E1A3C; border-radius: 36px; overflow: hidden; background: #1E1A3C; box-shadow: 0 22px 40px -22px rgba(30, 26, 60, .55); width: 100%; max-width: 290px; margin: 0 auto; position: relative; }
.phone img { display: block; width: 100%; height: auto; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; }
ol.steps > li { counter-increment: s; position: relative; padding: 4px 54px 4px 0; margin-bottom: 14px; min-height: 40px; }
ol.steps > li::before { content: counter(s); position: absolute; right: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); color: var(--green-dark); font-weight: 800; display: grid; place-items: center; }
.chapter ul.dots { padding: 0 1.3em 0 0; }
.chapter ul.dots li { margin-bottom: .5em; }

.box { border-radius: 20px; padding: 18px 22px 8px; margin: 20px 0; border: 1px solid var(--line); background: var(--bg); }
.box-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.box-title .e { font-size: 1.4rem; line-height: 1; }
.box.important { background: #FFF8DB; border-color: #EBD27A; }
.box.warn { background: #FFF1EE; border-color: #F0BBAE; }
.box.ok { background: #EAF8F0; border-color: #B5E3C8; }
.box p:last-child { margin-bottom: 8px; }
.kbd { display: inline-block; background: var(--bg-soft); color: var(--green-dark); font-weight: 800; border-radius: 10px; padding: 0 10px; white-space: nowrap; }

/* step player (animated walkthrough) */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; background: linear-gradient(135deg, #F8F5FF 0%, #ECE6FD 100%); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px; margin: 26px 0; }
.player-title { font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.player-title .e { font-size: 1.5rem; }
.p-caps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.p-caps button.cap { width: 100%; text-align: right; display: flex; gap: 12px; align-items: flex-start; background: #FFFFFF; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 1.05rem; line-height: 1.5; color: var(--ink); cursor: pointer; min-height: 52px; transition: border-color .2s ease, background .2s ease; }
.p-caps button.cap .k { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--green-dark); font-weight: 800; display: grid; place-items: center; font-size: .95rem; margin-top: 1px; }
.p-caps button.cap[aria-current="step"] { border-color: var(--green); background: #FFFFFF; box-shadow: 0 8px 20px -12px rgba(76, 29, 149, .6); }
.p-caps button.cap[aria-current="step"] .k { background: var(--green); color: #FFFFFF; }
.player-stage { position: relative; }
.player .phone .pf { display: block; width: 100%; height: auto; }
.player .phone .pf + .pf { position: absolute; inset: 0; }
.player .phone .pf { opacity: 0; transition: opacity .35s ease; }
.player .phone .pf:first-child { opacity: 1; }
.player.has-js .phone .pf:first-child { opacity: 0; }
.player.has-js .phone .pf.on { opacity: 1; }
.tap { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 213, 74, .6); border: 3px solid #FFD54A; box-shadow: 0 0 0 0 rgba(255, 213, 74, .7); pointer-events: none; opacity: 0; z-index: 2; }
.tap.on { opacity: 1; animation: tapPulse 1.3s ease-out infinite; }
@keyframes tapPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, .75); transform: scale(.9); } 70% { box-shadow: 0 0 0 18px rgba(255, 213, 74, 0); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0); transform: scale(.9); } }
.p-controls { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.p-btn { min-width: 46px; min-height: 46px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #FFFFFF; color: var(--ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.p-btn:hover { background: var(--bg-soft); }
.p-status { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 8px; min-height: 1.4em; }
.nojs-note { display: none; }

/* FAQ accordion (extends blog.css) */
.faq-list { margin-top: 10px; }

.finish { background: linear-gradient(135deg, #4C1D95, #6D28D9); color: #FFFFFF; border-radius: 28px; padding: 44px 32px; text-align: center; margin: 0 0 40px; box-shadow: var(--shadow); }
.finish h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; margin: 6px 0 10px; color: #FFFFFF; }
.finish p { color: #EDE9FE; max-width: 640px; margin: 0 auto 18px; }
.finish .btn { background: var(--yellow); color: var(--ink); }
.finish .btn:hover { background: #FFE17A; color: var(--ink); }
.finish a:not(.btn) { color: #FFFFFF; }
.top-link { display: block; text-align: center; margin: -12px 0 28px; }
.top-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

@media (max-width: 1000px) {
  .block, .player { grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; }
  .block.two { grid-template-columns: minmax(0, 1fr); }
  .block.two .figs { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .g-wrap { padding: 0 16px; }
  .g-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 28px; border-radius: 26px; gap: 20px; }
  .g-hero .phone { margin-bottom: -40px; max-width: 230px; }
  .chapter { padding: 24px 18px; border-radius: 22px; }
  .block, .player { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .block .figs, .player .player-stage { order: -1; }
  .figs.sticky { position: static; }
  .phone { max-width: 260px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .ch-num { width: 48px; height: 48px; font-size: 1.35rem; }
  .player { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .toc a, .player .phone .pf { transition: none; }
  .tap.on { animation: none; }
}

.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; }
.player:not(.has-js) .p-controls, .player:not(.has-js) .p-status { display: none; }
.faq-item summary { cursor: pointer; font-size: 1.12rem; font-weight: 800; line-height: 1.45; padding: 4px 0 12px; min-height: 44px; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; flex: none; color: var(--green); font-weight: 900; }
.faq-item[open] summary::before { content: "－"; }
.faq-item > div { padding-bottom: 6px; color: #2B2750; }
.breadcrumb { font-size: .95rem; color: var(--muted); margin: 18px 0 0; }
.breadcrumb a { text-decoration: underline; }
.faq-h { font-size: 1.8rem; font-weight: 900; margin: 40px 0 14px; }
