/* First-time buyer guide (/guide/ and /guia/). Daine's Muse guide, set in the site's black + bronze + cream system.
   Loads after styles.css and only adds what the guide needs. */

.g-hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 clamp(56px, 7vw, 110px); background:
  radial-gradient(70% 60% at 85% 30%, rgba(160, 114, 91, .22), transparent 70%), var(--ink); overflow: hidden; }
/* the hero animates in on its own (no scroll observer), so it is never blank on first paint */
@keyframes g-up { from { transform: translateY(22px); } to { transform: none; } }
.g-in { animation: g-up 1s var(--ease) both; }
.g-d1 { animation-delay: .1s; } .g-d2 { animation-delay: .2s; } .g-d3 { animation-delay: .3s; }
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.g-hero h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.g-hero .h-serif { font-size: clamp(2.6rem, 5.4vw, 6.6rem); line-height: 1.02; }
.g-hero .lede { margin: 1.4em 0 0; }
.g-hero .hero-ctas { margin-top: 2em; display: flex; flex-wrap: wrap; gap: 10px; }
.g-stats { list-style: none; margin: clamp(36px, 4vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); }
.g-stats li { padding: 1.2em 1.2em 0 0; }
.g-stats b { display: block; font: 300 clamp(1.4rem, 1.9vw, 2.6rem)/1.05 var(--serif); color: var(--bronze-lt); white-space: nowrap; }
.g-stats span { display: block; margin-top: .5em; font-size: .82em; color: rgba(255, 255, 255, .66); line-height: 1.4; }
.g-byline { margin: 2em 0 0; font-size: .78em; color: rgba(255, 255, 255, .55); max-width: 46em; line-height: 1.6; }
.g-photo { position: relative; aspect-ratio: 2 / 3; border-radius: 2px; overflow: hidden; background: var(--ink-2); max-height: 78svh; justify-self: end; width: 100%; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.g-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; background: rgba(12, 10, 9, .66);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-dk); font-size: .84em; line-height: 1.5; }
.g-photo figcaption b { display: block; font: 500 .62rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-lt); margin-bottom: .5em; }

/* section heads */
.g-head { display: grid; gap: 1em; max-width: 60em; }
.g-head .lede { margin: 0; }

/* steps: the site timeline, plus a timing chip per step */
.g-steps .timeline h3 { font-size: 1.12rem; }
.g-when { display: inline-block; margin-top: .9em; font: 500 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: var(--bronze-lt); padding: 6px 9px; border-radius: 999px; }

/* glossary */
.g-words { margin: clamp(40px, 5vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-lt); counter-reset: w; }
.g-word { padding: clamp(22px, 2.6vw, 40px) clamp(16px, 2vw, 32px) clamp(22px, 2.6vw, 40px) 0; border-bottom: 1px solid var(--line-lt); counter-increment: w; }
.g-word:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-lt); }
.g-word::before { content: "0" counter(w); font: 500 .64rem/1 var(--sans); letter-spacing: .24em; color: var(--bronze-dk); }
.g-word h3 { font: 300 clamp(1.5rem, 2vw, 2.2rem)/1.1 var(--serif); margin: .6em 0 .5em; }
.g-word h3 small { display: block; font: 500 .6rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-top: .5em; }
.g-word p { margin: 0; }
.g-word .ex { margin-top: .9em; font-size: .86em; color: var(--taupe); padding-left: 12px; border-left: 2px solid var(--bronze-lt); }

/* calculator: the site .calc, plus the debt meter, credit path and share */
.g-calc { background: var(--cream-2); }
.g-calc .result { gap: 12px; }
.g-meter { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 8px; }
.g-meter .cap { display: flex; justify-content: space-between; gap: 12px; }
.g-meter .cap b { color: var(--cream); font-weight: 500; letter-spacing: .1em; }
.g-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.g-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--bronze-lt); transition: width .5s var(--ease), background .3s; }
.g-bar[data-zone="tight"] i { background: #d9a441; }
.g-bar[data-zone="high"] i { background: #d9725f; }
.g-bar s { position: absolute; top: -3px; bottom: -3px; width: 1px; background: rgba(255, 255, 255, .55); }
.g-meter p { margin: 0; font-size: .86em; color: rgba(244, 235, 228, .82); }
.g-path { margin: 0; padding: 14px 16px; border-radius: 4px; background: rgba(255, 255, 255, .06); font-size: .88em; line-height: 1.5; color: rgba(244, 235, 228, .9); }
.g-path b { display: block; font: 500 .6rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-lt); margin-bottom: .45em; }
.g-act { display: flex; flex-wrap: wrap; gap: 8px; }
.g-act .btn { min-height: 44px; font-size: .7rem; }
.g-act small { flex-basis: 100%; font-size: .74rem; color: rgba(244, 235, 228, .6); }
.g-rate-note { font-size: .74rem; color: var(--taupe); }

/* programs */
.g-progs { margin-top: clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-prog { background: var(--ink-2); border: 1px solid var(--line-dk); border-radius: 4px; padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.g-prog header { display: grid; gap: 6px; }
.g-prog h3 { font: 400 1.5rem/1.1 var(--sans); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.g-prog header p { margin: 0; color: rgba(255, 255, 255, .62); font-size: .9em; }
.g-tag { align-self: flex-start; font: 500 .6rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-lt); border: 1px solid rgba(201, 162, 138, .45); border-radius: 999px; padding: 7px 11px; }
.g-prog ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .9em; color: rgba(255, 255, 255, .82); }
.g-prog li { position: relative; padding-left: 18px; }
.g-prog li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--bronze-lt); }
.g-prog .note { margin: auto 0 0; padding: 14px 16px; border-radius: 4px; background: rgba(201, 162, 138, .08); border-left: 2px solid var(--bronze-lt); font-size: .84em; color: rgba(255, 255, 255, .78); line-height: 1.55; }
.g-prog .note b { color: var(--bronze-lt); font-weight: 500; }
.g-more { margin-top: clamp(28px, 3vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; color: rgba(255, 255, 255, .72); }

/* credit ranges */
.g-credit { margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-lt); }
.g-band { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 56px); padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line-lt); transition: background .3s; scroll-margin-top: 110px; }
.g-band.on { background: linear-gradient(90deg, rgba(160, 114, 91, .14), transparent 80%); }
.g-band > b { font: 300 clamp(2rem, 3.4vw, 3.6rem)/1 var(--serif); color: var(--bronze); }
.g-band h3 { font: 500 1rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .5em; }
.g-band p { margin: 0; color: var(--taupe); }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.g-chips span { font: 500 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-lt); border-radius: 999px; padding: 7px 11px; color: var(--cocoa); }
.g-why { margin-top: 14px; padding: 14px 16px; background: #fff; border-radius: 4px; font-size: .9em; color: var(--cocoa); }
.g-why b { color: var(--bronze-dk); font-weight: 500; }
.g-notes { margin-top: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-notes p { margin: 0; padding: 18px 20px; background: #fff; border-radius: 4px; font-size: .88em; color: var(--taupe); line-height: 1.6; }
.g-notes p b { color: var(--cocoa); font-weight: 500; }

/* mistakes */
.g-mistakes { margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: e; }
.g-mistakes li { counter-increment: e; padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line-dk); border-radius: 4px; background: var(--ink-2); }
.g-mistakes li::before { content: counter(e); display: block; font: 300 3rem/1 var(--serif); color: var(--bronze-lt); margin-bottom: .3em; }
.g-mistakes h3 { font: 400 1.15rem/1.25 var(--sans); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6em; }
.g-mistakes p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .92em; }

/* checklist */
.g-check { margin: clamp(36px, 4vw, 64px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 56px); border-top: 1px solid var(--line-lt); }
.g-check label { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-lt); cursor: pointer; }
.g-check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 2px 0 0; border: 1px solid var(--bronze); border-radius: 50%; display: grid; place-items: center; background: #fff; cursor: pointer; }
.g-check input::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.g-check input:checked { background: var(--bronze); }
.g-check input:checked::after { opacity: 1; }
.g-check b { display: block; font-weight: 500; }
.g-check span { color: var(--taupe); font-size: .9em; }
.g-check input:checked ~ div b { text-decoration: line-through; text-decoration-color: var(--bronze); }
.g-progress { margin: 18px 0 0; font: 500 .66rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-dk); }

/* author + call to action */
.g-author .meet-body h2 { margin-bottom: 0; }
.g-sub { margin: -6px 0 0; font: 500 .66rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-lt); }
.g-author .meet-body > p:not(.eyebrow):not(.g-sub) { margin: 0; color: rgba(255, 255, 255, .78); }
.g-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.g-pills span { font: 500 .6rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line-dk); border-radius: 999px; padding: 7px 11px; color: rgba(255, 255, 255, .78); }
.g-cta { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line-dk); display: grid; gap: 12px; }
.g-cta h3 { font: 300 clamp(1.5rem, 2.2vw, 2.4rem)/1.15 var(--serif); margin: 0; }
.g-cta p { margin: 0; color: rgba(255, 255, 255, .72); }
.g-sign { font: italic 300 1.05em/1.5 var(--serif); color: var(--bronze-lt); }

/* share + sources */
.g-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.g-share a, .g-share button { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-lt); border-radius: 999px; background: transparent;
  font: 500 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cocoa); text-decoration: none; cursor: pointer; }
.g-share a:hover, .g-share button:hover { border-color: var(--cocoa); }
.g-share-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .8rem; color: var(--bronze-dk); }
.g-sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.g-sources h2 { font: 300 clamp(1.4rem, 2vw, 2rem)/1.15 var(--serif); margin: 0 0 .7em; }
.g-sources p { margin: 0 0 1em; font-size: .86em; color: var(--taupe); line-height: 1.7; }
.g-sources a { color: var(--bronze-dk); }

/* WhatsApp button that follows the reader */
.g-fab { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 90; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #1f9d55; color: #fff; text-decoration: none; font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: translateY(calc(100% + 48px)); transition: transform .5s var(--ease); }
.g-fab.show { transform: none; }
.g-fab svg { width: 24px; height: 24px; flex: none; }

@media (max-width: 1180px) {
  .g-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-word:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .g-word:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-lt); }
}
@media (max-width: 900px) {
  .g-hero { min-height: 0; padding-top: 100px; }
  .g-hero-grid { grid-template-columns: 1fr; }
  .g-photo { justify-self: stretch; max-width: 520px; max-height: none; aspect-ratio: 4 / 5; }
  .g-mistakes, .g-notes, .g-sources { grid-template-columns: 1fr; }
  .g-check { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-stats { grid-template-columns: 1fr; }
  .g-stats li { padding: 1em 0; border-bottom: 1px solid var(--line-dk); }
  .g-stats span { margin-top: .35em; }
  .g-words, .g-progs { grid-template-columns: 1fr; }
  .g-word:nth-child(even) { padding-left: 0; border-left: 0; }
  .g-band { grid-template-columns: 1fr; gap: 8px; }
  .g-fab span { display: none; }
  .g-fab { padding: 0; width: 56px; justify-content: center; }
}
@media (min-width: 2400px) {
  .g-hero .h-serif { font-size: 7.4rem; }
}
@media print {
  .nav, #menu, .g-fab, .g-share, .hero-ctas, .g-act { display: none !important; }
}
