/* Guide pages (/get-paid-to-use-sounds …) and legal pages (/privacy-policy …), built by build/guides.py on top of css/post.css. */

/* ---------- guide hero: words left, picture right ---------- */
.g-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1180px; }
.g-hero:not(.has-art) { max-width: 980px; }
.g-hero.has-art { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.g-hero .post-title { font-size: clamp(36px, 4.6vw, 64px); }
.g-hero .post-dek { max-width: 34em; }
.g-hero .ctas { margin-top: 28px; }
.g-updated { margin-top: 14px; font-size: 14px; font-weight: 600; opacity: .6; }
.g-disclosure { margin-top: 6px; font-size: 14px; line-height: 1.45; opacity: .6; }
.g-hero .g-updated + .post-dek, .g-hero .g-disclosure + .post-dek { margin-top: 14px; }
.g-art { margin: 0; }
.g-art img { display: block; width: 100%; height: auto; border-radius: clamp(20px, 2.4vw, 32px); }
.g-art img.tall { width: auto; max-width: 100%; max-height: min(70vh, 620px); margin: 0 auto; }
.g-press { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; }
.g-press > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }
.g-press ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.g-press img { display: block; height: 20px; width: auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .72; }

/* ---------- guide blocks inside the reading column (a little wider than a post's) ---------- */
.guide .post-grid.no-toc { grid-template-columns: minmax(0, 820px); }
.post-content .g-stats, .post-content .g-steps, .post-content .g-why { list-style: none; padding: 0; }
.post-content .g-stats li + li, .post-content .g-steps li + li, .post-content .g-why li + li { margin-top: 0; }
.g-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-stats li { background: var(--light); border-radius: 22px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.g-stats b { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; line-height: 1; }
.g-stats span { font-size: 14.5px; line-height: 1.35; opacity: .75; }
.g-steps { counter-reset: gs; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-steps:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* three steps: one row */
.g-steps li { counter-increment: gs; border: 1px solid #e6e6ee; border-radius: 22px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.g-steps li::before { content: counter(gs); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.g-steps b, .g-why b { font-size: 18px; line-height: 1.3; }
.g-steps span, .g-why span { font-size: 16px; line-height: 1.5; opacity: .78; }
.g-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.g-why li { position: relative; padding-left: 36px; display: flex; flex-direction: column; gap: 4px; }
.g-why li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.g-note { background: var(--light); border-radius: 26px; padding: clamp(22px, 3vw, 34px); }
.post-content .g-note h2 { margin-top: 0; font-size: clamp(22px, 2vw, 28px); }
.g-note > * + * { margin-top: .7em; }
.post-content .ctas { margin-top: 1.1em; }
.g-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
/* the wide comparison tables (css/post.css .g-cmp) run wider than the reading column on desktop: 6 columns stay readable */
.guide .post-content .g-cmp.g-wide { margin-inline: calc(50% - min(570px, 50vw - 24px)); }
.guide .post-content .g-cmp.g-wide table { min-width: 860px; }
.g-alt { margin-top: 14px; font-size: 15px; line-height: 1.45; opacity: .8; }
.g-alt a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content .g-method { margin-top: 1.4em; }
.post-content .g-method p { font-size: 16px; line-height: 1.6; }
.g-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.g-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--light); font-size: 15px; font-weight: 600; transition: background-color .2s; }
.g-links a:hover { background: #e8e8ee; }
.post-cta .btn.store-btn { background: #fff; color: var(--ink); }
.post-cta .btn.store-btn > span:first-child svg { fill: var(--ink); }
.guide .post-cta .lede + .lede { margin-top: 10px; }

/* ---------- legal: contents on the side (desktop) or folded at the top (phone) ---------- */
.legal .post-title { font-size: clamp(34px, 4.4vw, 60px); }
.legal-content { font-size: 17px; line-height: 1.7; }
.legal-content h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 2em; }
.legal-content h3 { font-size: 18px; margin-top: 1.5em; }
.legal-toc { display: none; border: 1px solid #e6e6ee; border-radius: 18px; padding: 14px 18px; }
.legal-toc summary { cursor: pointer; font-weight: 600; }
.legal-toc summary span { font-weight: 500; opacity: .5; }
.legal-toc ol { margin-top: 10px; padding-left: 1.3em; font-size: 15px; line-height: 1.45; }
.post-content .legal-toc li + li { margin-top: .4em; }
.post-content .legal-toc a { color: inherit; text-decoration: none; }
.legal-content a { overflow-wrap: anywhere; }

/* SMS opt-in form (posts to the Twilio relay; the page's own script handles it) */
.sms-form { position: relative; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: var(--light); }
.sms-form .hp { position: absolute; left: -9999px; }
.sms-label { display: block; font-weight: 600; margin-bottom: 8px; }
#optin-phone { width: 100%; max-width: 360px; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); border: 1.5px solid #d6d6de; border-radius: 14px; background: #fff; }
#optin-phone:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.sms-form > p { font-size: 15px; line-height: 1.5; margin: 18px 0 6px; }
.sms-check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: 15px; line-height: 1.5; }
.sms-check input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--orange); }
.sms-form .btn { margin-top: 10px; border: 0; cursor: pointer; font-family: inherit; }
.sms-form .btn:disabled { opacity: .6; cursor: default; }
#optin-status { margin-top: 12px; font-size: 15px; }

@media (max-width: 1060px) { .legal-toc { display: block; } }
@media (max-width: 900px) { .g-hero.has-art { grid-template-columns: minmax(0, 1fr); } .g-art { max-width: 560px; } }
@media (max-width: 600px) { .guide .post-content .g-cmp.g-wide { margin-inline: 0; } .guide .post-content .g-cmp.g-wide table { min-width: 0; } }
@media (max-width: 640px) {
  .g-art img.tall { max-height: min(62vh, 520px); }
  .g-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-steps, .g-why { grid-template-columns: minmax(0, 1fr); }
  .g-hero .ctas .btn { flex: 1 1 auto; }
}
