/* AI Ghost Writer — home page. Builds on marketing.css tokens/components. */

.hm-section { position: relative; padding: clamp(88px, 11vw, 150px) 0; isolation: isolate; }
.hm-section-paper { background: var(--paper); color: var(--text-on-paper); }
.hm-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.hm-head.left { margin-left: 0; text-align: left; }
.hm-head h2 { font-size: clamp(38px, 5.2vw, 64px); margin: 18px 0 18px; }
.hm-head p { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted-on-ink); margin: 0; }
.hm-section-paper .hm-head p { color: var(--muted-on-paper); }
.hm-section-paper .mk-eyebrow { color: var(--muted-on-paper); background: #fff; border-color: var(--paper-line); }

/* ---------- Hero ---------- */
.hm-hero { position: relative; min-height: min(100vh, 980px); padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(70px, 8vw, 110px); isolation: isolate; overflow: hidden; }
.hm-hero .mk-container { position: relative; z-index: 1; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hm-audience { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; position: relative; }
.hm-audience button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted-on-ink); transition: color .3s; }
.hm-audience button[aria-pressed="true"] { color: #fff; }
.hm-audience-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: linear-gradient(100deg, rgba(109,75,255,.9), rgba(255,95,168,.8)); box-shadow: 0 6px 20px -8px rgba(255,95,168,.9); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.hm-hero h1 { font-size: clamp(46px, 6.6vw, 90px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 24px; }
.hm-hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted-on-ink); max-width: 36em; margin: 0 0 34px; }
.hm-swap { transition: opacity .35s, transform .45s var(--ease-out); }
.hm-swap.is-out { opacity: 0; transform: translateY(8px); }
[data-audience-panel][hidden] { display: none; }

.hm-capture { display: flex; gap: 8px; padding: 7px; max-width: 540px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: 0 20px 60px -24px rgba(109,75,255,.6); transition: border-color .25s, box-shadow .25s; }
.hm-capture:focus-within { border-color: rgba(139,108,255,.7); box-shadow: 0 0 0 4px rgba(139,108,255,.16), 0 20px 60px -24px rgba(109,75,255,.8); }
.hm-capture input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; color: #fff; }
.hm-capture input::placeholder { color: var(--faint-on-ink); }
.hm-capture input:focus { outline: none; }
.hm-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted-on-ink); }
.hm-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hm-trust svg { width: 17px; height: 17px; color: var(--mint); flex: none; }
@media (max-width: 520px) {
  .hm-capture { flex-direction: column; border-radius: 22px; padding: 8px; }
  .hm-capture input { padding: 14px 14px; }
  .hm-capture .mk-btn { width: 100%; }
}

.hm-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 640px; margin-left: auto; width: 100%; }
.hm-hero-art::before { content: ""; position: absolute; inset: 12% 10% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(139,108,255,.55), rgba(255,95,168,.18) 45%, transparent 70%); filter: blur(30px); animation: hm-breathe 7s ease-in-out infinite; }
.hm-hero-book { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 50px 60px rgba(0,0,0,.55)); animation: hm-float 8s ease-in-out infinite; will-change: transform; }
@keyframes hm-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes hm-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hm-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.35; background: rgba(18, 14, 48, .72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); animation: hm-bob 6s ease-in-out infinite; }
.hm-chip b { display: block; font-weight: 600; color: #fff; }
.hm-chip small { color: var(--muted-on-ink); font-size: 12px; }
.hm-chip-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid rgba(255,255,255,.1); }
.hm-chip-icon svg { width: 18px; height: 18px; color: #e3d9ff; }
.hm-chip-1 { left: -2%; top: 16%; }
.hm-chip-2 { right: -2%; top: 44%; animation-delay: -2s; max-width: 250px; }
.hm-chip-3 { left: 8%; bottom: 10%; animation-delay: -4s; }
.hm-chip-2 .hm-bubble { display: block; font-size: 13.5px; color: #fff; margin-top: 2px; }
.hm-chip small { display: block; }
.hm-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #8b6cff, #ff5fa8); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hm-progress { display: block; width: 130px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.hm-progress i { display: block; height: 100%; width: 70%; border-radius: inherit; background: var(--grad-brand); animation: hm-grow 4s var(--ease-out) infinite; }
@keyframes hm-grow { from { width: 22%; } to { width: 92%; } }
@media (max-width: 960px) {
  .hm-hero { min-height: 0; }
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-art { max-width: 520px; margin: 10px auto 0; }
}
@media (max-width: 520px) { .hm-chip-2 { right: 0; max-width: 200px; } .hm-chip-1 { left: 0; } }

/* ---------- Capability strip ---------- */
.hm-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.hm-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-stat { padding: 30px 20px; text-align: center; }
.hm-stat + .hm-stat { border-left: 1px solid rgba(255,255,255,.07); }
.hm-stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.hm-stat span { font-size: 14px; color: var(--muted-on-ink); }
@media (max-width: 760px) { .hm-strip-grid { grid-template-columns: 1fr 1fr; } .hm-stat:nth-child(3) { border-left: 0; } .hm-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.07); } }

/* ---------- Character chat ---------- */
.hm-chat { overflow: hidden; }
.hm-chat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 75% 50%, rgba(109,75,255,.22), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(255,95,168,.1), transparent 70%); }
.hm-chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hm-badge-new { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,197,107,.08); border: 1px solid rgba(255,197,107,.3); }
.hm-feature-list { list-style: none; margin: 34px 0 36px; padding: 0; display: grid; gap: 18px; }
.hm-feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.hm-feature-list .hm-fi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid rgba(255,255,255,.1); }
.hm-feature-list .hm-fi svg { width: 20px; height: 20px; color: #e3d9ff; }
.hm-feature-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.hm-feature-list p { margin: 0; font-size: 15.5px; color: var(--muted-on-ink); }

.hm-stage { position: relative; min-height: 640px; }
.hm-stage-photo { position: absolute; inset: 0 0 0 12%; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.hm-stage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(1.02); }
.hm-stage-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,6,26,.85) 0%, rgba(7,6,26,.25) 45%, rgba(7,6,26,.05) 100%); }
.hm-phone { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(340px, 78%); border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a2550, #0e0b26); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 60px 120px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 6px rgba(255,255,255,.03); }
.hm-phone-screen { border-radius: 34px; overflow: hidden; background: #0b0920; height: 580px; display: flex; flex-direction: column; }
.hm-phone-top { padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.hm-phone-id { display: flex; align-items: center; gap: 10px; }
.hm-phone-id b { display: block; font-size: 15px; }
.hm-phone-id small { font-size: 11.5px; color: var(--mint); }
.hm-phone-meta { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.hm-phone-meta span { font-size: 10.5px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted-on-ink); border: 1px solid rgba(255,255,255,.07); }
.hm-thread { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.hm-msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.42; animation: hm-msg-in .45s var(--ease-out) both; }
.hm-msg.them { align-self: flex-start; background: rgba(255,255,255,.08); border-bottom-left-radius: 6px; color: #f1eeff; }
.hm-msg.me { align-self: flex-end; background: linear-gradient(135deg, #6d4bff, #b35cff); border-bottom-right-radius: 6px; color: #fff; }
.hm-msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.hm-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: hm-dot 1.2s infinite; }
.hm-msg.typing i:nth-child(2) { animation-delay: .15s; } .hm-msg.typing i:nth-child(3) { animation-delay: .3s; }
.hm-canon { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; background: rgba(255,197,107,.08); border: 1px dashed rgba(255,197,107,.4); color: #ffe1ad; animation: hm-msg-in .5s var(--ease-out) both; }
.hm-canon b { color: var(--gold); white-space: nowrap; }
@keyframes hm-msg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hm-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.hm-phone-input { margin: 0 12px 12px; padding: 11px 14px; border-radius: 20px; font-size: 13px; color: var(--faint-on-ink); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; }
.hm-stage-caption { position: absolute; right: 22px; bottom: 22px; z-index: 2; font-size: 12px; color: rgba(255,255,255,.6); font-family: var(--font-mono); letter-spacing: .06em; }
@media (max-width: 960px) {
  .hm-chat-grid { grid-template-columns: 1fr; }
  .hm-stage { min-height: 0; }
  .hm-stage-photo { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .hm-phone { position: relative; left: auto; top: auto; transform: none; margin: -140px auto 0; }
}

/* ---------- How it works ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.hm-step { position: relative; padding: 26px 22px 24px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); transition: transform .5s var(--ease-out), border-color .3s; }
.hm-step:hover { transform: translateY(-6px); border-color: rgba(139,108,255,.4); }
.hm-step-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--violet); }
.hm-step h3 { font-size: 23px; margin: 10px 0 8px; }
.hm-step p { margin: 0; font-size: 15px; color: var(--muted-on-ink); }
.hm-mini { height: 128px; margin: 0 0 22px; border-radius: 16px; background: rgba(7,6,26,.6); border: 1px solid rgba(255,255,255,.07); padding: 14px; overflow: hidden; position: relative; }
.hm-mini .b { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); margin-bottom: 8px; }
.hm-mini .b.v { background: linear-gradient(90deg, rgba(139,108,255,.6), rgba(255,95,168,.4)); }
.hm-mini-chat { display: flex; flex-direction: column; gap: 7px; }
.hm-mini-chat span { font-size: 11px; padding: 6px 9px; border-radius: 10px; max-width: 85%; line-height: 1.3; }
.hm-mini-chat .a { background: rgba(255,255,255,.08); align-self: flex-start; color: #ddd8f5; }
.hm-mini-chat .u { background: linear-gradient(135deg, #6d4bff, #b35cff); align-self: flex-end; }
.hm-mini-outline div { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #cfc9ec; margin-bottom: 7px; }
.hm-mini-outline div::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--violet); flex: none; }
.hm-mini-outline div.sub { padding-left: 14px; color: var(--faint-on-ink); }
.hm-mini.hm-mini-covers { display: flex; gap: 8px; justify-content: center; align-items: center; }
.hm-mini-covers i { width: 56px; height: 84px; border-radius: 4px 8px 8px 4px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.7); }
.hm-mini-covers i:nth-child(1) { background: linear-gradient(160deg, #2b1f6b, #6d4bff 60%, #ffc56b); transform: rotate(-6deg); }
.hm-mini-covers i:nth-child(2) { background: linear-gradient(160deg, #3a0f2e, #ff5fa8 70%, #ffd9a0); height: 96px; outline: 2px solid var(--gold); outline-offset: 3px; }
.hm-mini-covers i:nth-child(3) { background: linear-gradient(160deg, #0f2a3a, #5ce0b8 70%, #e8fff6); transform: rotate(6deg); }
.hm-mini-write small { font-size: 11px; color: var(--muted-on-ink); display: flex; justify-content: space-between; margin-bottom: 8px; }
.hm-mini-write .hm-progress { width: 100%; margin: 0 0 12px; }
@media (max-width: 1000px) { .hm-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-note { text-align: center; margin: 34px 0 0; font-size: 15px; color: var(--muted-on-ink); }
.hm-note b { color: #fff; font-weight: 600; }

/* ---------- Benefits (paper) ---------- */
.hm-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hm-benefit { position: relative; display: grid; grid-template-columns: 44% 1fr; min-height: 300px; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--paper-line); box-shadow: var(--shadow-soft); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.hm-benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.hm-benefit-img { position: relative; overflow: hidden; }
.hm-benefit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hm-benefit:hover .hm-benefit-img img { transform: scale(1.06); }
.hm-benefit-body { padding: 28px 28px 26px; display: flex; flex-direction: column; }
.hm-benefit-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }
.hm-benefit h3 { font-size: 27px; margin: 10px 0 10px; color: var(--text-on-paper); }
.hm-benefit p { margin: 0; font-size: 15.5px; color: var(--muted-on-paper); }
.hm-benefit blockquote { margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--paper-line); font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.4; color: #3b3752; }
@media (max-width: 1060px) { .hm-benefits { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hm-benefit { grid-template-columns: 1fr; } .hm-benefit-img { aspect-ratio: 16 / 10; } }

/* ---------- Editor showcase ---------- */
.hm-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hm-tab { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--muted-on-ink); padding: 10px 18px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .25s; }
.hm-tab:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.hm-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgba(109,75,255,.9), rgba(255,95,168,.75)); box-shadow: 0 10px 30px -12px rgba(255,95,168,.8); }
.hm-window { max-width: 1060px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #fbfaf7; color: var(--text-on-paper); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 60px 140px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04), 0 0 120px -40px rgba(139,108,255,.5); }
.hm-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f1eee7; border-bottom: 1px solid #e4dfd3; }
.hm-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0dbcf; }
.hm-window-bar i:nth-child(1) { background: #ff6b6b; } .hm-window-bar i:nth-child(2) { background: #ffc452; } .hm-window-bar i:nth-child(3) { background: #3ad07a; }
.hm-window-bar span { margin-left: 12px; font-size: 12.5px; color: #8a8599; font-family: var(--font-mono); }
.hm-window-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 460px; }
.hm-page { padding: 34px 44px; font-family: var(--font-display); font-size: 17px; line-height: 1.75; color: #2b2840; border-right: 1px solid #ebe6db; }
.hm-page h4 { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #9a94ad; margin: 0 0 16px; }
.hm-page p { margin: 0 0 14px; }
.hm-sel { background: rgba(139,108,255,.18); border-radius: 3px; box-shadow: 0 0 0 2px rgba(139,108,255,.18); }
.hm-del { background: #ffe1e4; color: #b3263a; text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.hm-ins { background: #d9f7e6; color: #11734a; border-radius: 3px; padding: 0 2px; }
.hm-side { padding: 18px; background: #f7f5f0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-body); font-size: 13.5px; }
.hm-side-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9a94ad; }
.hm-bubble-ai, .hm-bubble-me { padding: 10px 13px; border-radius: 14px; line-height: 1.45; }
.hm-bubble-me { align-self: flex-end; background: #6d4bff; color: #fff; border-bottom-right-radius: 4px; max-width: 90%; }
.hm-bubble-ai { background: #fff; border: 1px solid #e8e3d8; border-bottom-left-radius: 4px; }
.hm-apply { background: #fff; border: 1px solid #d9d0ff; border-radius: 14px; padding: 12px; box-shadow: 0 8px 20px -12px rgba(109,75,255,.5); }
.hm-apply small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6d4bff; margin-bottom: 6px; }
.hm-apply-actions { display: flex; gap: 8px; margin-top: 10px; }
.hm-apply-actions span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.hm-apply-actions .go { background: #6d4bff; color: #fff; }
.hm-apply-actions .no { background: #f1eee7; color: #6b667e; }
.hm-card { background: #fff; border: 1px solid #e8e3d8; border-radius: 12px; padding: 10px 12px; }
.hm-card b { display: block; font-size: 13.5px; color: var(--text-on-paper); }
.hm-card small { color: #7b768d; font-size: 12px; }
.hm-role { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #efe9ff; color: #6d4bff; font-weight: 600; margin-left: 6px; vertical-align: 2px; }
.hm-map svg { width: 100%; height: auto; }
.hm-panel[hidden] { display: none; }
.hm-panel { animation: hm-fade .5s var(--ease-out); }
@keyframes hm-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hm-tab-caption { text-align: center; max-width: 620px; margin: 26px auto 0; color: var(--muted-on-ink); font-size: 16px; min-height: 3em; }
@media (max-width: 860px) {
  .hm-window-body { grid-template-columns: 1fr; }
  .hm-page { border-right: 0; border-bottom: 1px solid #ebe6db; padding: 24px 22px; font-size: 16px; }
}

/* ---------- Quality ---------- */
.hm-quality { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hm-quality-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-q { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--paper-line); box-shadow: var(--shadow-soft); }
.hm-q svg { width: 26px; height: 26px; color: var(--violet-2); margin-bottom: 14px; }
.hm-q h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--text-on-paper); }
.hm-q p { margin: 0; font-size: 15px; color: var(--muted-on-paper); }
.hm-bigquote { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.025em; color: var(--text-on-paper); margin: 18px 0 20px; }
.hm-bigquote em { font-style: italic; font-weight: 400; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-quality p.hm-lede { color: var(--muted-on-paper); font-size: 18px; margin: 0; }
@media (max-width: 960px) { .hm-quality { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hm-quality-list { grid-template-columns: 1fr; } }

/* ---------- Publishing ---------- */
.hm-publish { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 520px; display: flex; align-items: center; isolation: isolate; border: 1px solid rgba(255,255,255,.1); }
.hm-publish > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hm-publish::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,26,.95) 0%, rgba(7,6,26,.8) 40%, rgba(7,6,26,.1) 80%); }
.hm-publish-body { padding: clamp(32px, 6vw, 72px); max-width: 600px; }
.hm-publish h2 { font-size: clamp(36px, 4.6vw, 56px); margin: 18px 0 16px; }
.hm-publish p { color: var(--muted-on-ink); margin: 0 0 26px; }
.hm-files { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-files span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 8px 13px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hm-files span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad-brand); }
@media (max-width: 760px) { .hm-publish::before { background: linear-gradient(180deg, rgba(7,6,26,.4), rgba(7,6,26,.95) 55%); } .hm-publish { align-items: flex-end; min-height: 640px; } }

/* ---------- Pricing ---------- */
.hm-billing { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); margin: 28px auto 0; }
.hm-billing button { border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted-on-ink); transition: all .3s; }
.hm-billing button[aria-pressed="true"] { background: #fff; color: var(--ink-900); }
.hm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1120px; margin: 0 auto; }
.hm-plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.hm-plan.is-featured { background: linear-gradient(180deg, rgba(109,75,255,.22), rgba(255,95,168,.06) 60%, rgba(255,255,255,.02)); box-shadow: 0 40px 100px -40px rgba(139,108,255,.8); transform: translateY(-10px); }
.hm-plan.is-featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(139,108,255,.9), rgba(255,95,168,.6), rgba(255,197,107,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hm-plan-tag { position: absolute; top: -13px; left: 28px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); color: #fff; background: linear-gradient(100deg, var(--violet-2), var(--magenta)); box-shadow: 0 8px 20px -8px rgba(255,95,168,.9); }
.hm-plan-tag.alt { background: rgba(255,197,107,.14); color: var(--gold); border: 1px solid rgba(255,197,107,.4); box-shadow: none; }
.hm-plan h3 { font-size: 30px; margin: 4px 0 4px; }
.hm-plan-sub { font-size: 14.5px; color: var(--muted-on-ink); margin: 0 0 22px; min-height: 2.8em; }
.hm-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.hm-price b { font-family: var(--font-display); font-weight: 500; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.hm-price span { color: var(--muted-on-ink); font-size: 15px; }
.hm-price-note { font-size: 13.5px; color: var(--faint-on-ink); margin: 0 0 24px; min-height: 1.5em; }
.hm-plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; }
.hm-plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.hm-plan li svg { width: 18px; height: 18px; margin-top: 1px; }
.hm-plan li.on svg { color: var(--mint); }
.hm-plan li.off { color: var(--faint-on-ink); }
.hm-plan li.off svg { color: rgba(255,255,255,.2); }
.hm-plan li.hl { color: #fff; font-weight: 600; }
.hm-plan .mk-btn { width: 100%; }
.hm-guarantee { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 700px; margin: 40px auto 0; padding: 18px 22px; border-radius: var(--r-lg); background: rgba(92,224,184,.06); border: 1px solid rgba(92,224,184,.25); }
.hm-guarantee svg { width: 38px; height: 38px; color: var(--mint); flex: none; }
.hm-guarantee p { margin: 0; font-size: 15px; color: var(--muted-on-ink); }
.hm-guarantee b { color: #fff; }
[data-billing="plan"] .hm-when-once, [data-billing="once"] .hm-when-plan { display: none; }
@media (max-width: 980px) { .hm-plans { grid-template-columns: 1fr; max-width: 520px; } .hm-plan.is-featured { transform: none; } }

/* ---------- FAQ ---------- */
.hm-faq { max-width: 820px; margin: 0 auto; }
.hm-faq details { border-bottom: 1px solid var(--paper-line); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); color: var(--text-on-paper); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary i { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--paper-line); background: #fff; transition: transform .4s var(--ease-out), background .3s; }
.hm-faq summary i::before, .hm-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--text-on-paper); transform: translate(-50%, -50%); border-radius: 2px; }
.hm-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.hm-faq details[open] summary i { background: var(--violet-2); border-color: var(--violet-2); transform: rotate(180deg); }
.hm-faq details[open] summary i::before, .hm-faq details[open] summary i::after { background: #fff; }
.hm-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.hm-faq-a { padding: 0 60px 26px 4px; color: var(--muted-on-paper); font-size: 16.5px; }
.hm-faq-a p { margin: 0 0 10px; }
.hm-faq-a a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.hm-final { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px); text-align: center; isolation: isolate; border: 1px solid rgba(255,255,255,.1); }
.hm-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hm-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(7,6,26,.55), rgba(7,6,26,.92)); }
.hm-final h2 { font-size: clamp(40px, 6vw, 76px); max-width: 14ch; margin: 18px auto 16px; }
.hm-final p { color: #d6d1f0; max-width: 46ch; margin: 0 auto 32px; font-size: 18px; }
.hm-final .hm-capture { margin: 0 auto; }
.hm-final .hm-trust { justify-content: center; }
.hm-final-wrap { background: var(--paper); padding: 0 0 clamp(70px, 9vw, 120px); }

/* ---------- Audience switch (hero toggle drives the whole page) ----------
   <html data-aud="expert"> shows .aud-expert and hides .aud-story; the
   default (no attribute, or no JS) is the story version. */
html:not([data-aud="expert"]) .aud-expert { display: none !important; }
html[data-aud="expert"] .aud-story { display: none !important; }
.hm-duo { display: flex; flex-direction: column; }
html[data-aud="expert"] .hm-duo .hm-nf { order: -1; }
html[data-aud="expert"] .hm-benefit-authority { order: -1; }
.hm-bonus { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #c9b8ff; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(139,108,255,.1); border: 1px solid rgba(139,108,255,.35); }

/* ---------- Non-fiction showcase ---------- */
.hm-nf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 50% at 25% 50%, rgba(255,197,107,.12), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(109,75,255,.14), transparent 70%); }
.hm-nf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hm-badge-gold { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,197,107,.08); border: 1px solid rgba(255,197,107,.3); }
.hm-nf-stage { position: relative; padding: 30px 0 30px 40px; }
.hm-nf-book { position: absolute; left: 0; top: 0; width: 170px; aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(160deg, #1c1846 0%, #2d2470 45%, #b8862f 100%); box-shadow: 0 40px 70px -25px rgba(0,0,0,.9), inset 6px 0 10px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); padding: 20px 16px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-6deg); z-index: 2; }
.hm-nf-book small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; color: rgba(255,230,180,.8); }
.hm-nf-book b { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.05; color: #fff6e6; }
.hm-nf-book span { font-size: 10px; color: rgba(255,240,215,.75); letter-spacing: .08em; text-transform: uppercase; }
.hm-nf-card { position: relative; margin-left: 135px; border-radius: 22px; overflow: hidden; background: #fbfaf7; color: var(--text-on-paper); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 100px -40px rgba(255,197,107,.35); }
.hm-nf-card-head { padding: 14px 18px; background: #f1eee7; border-bottom: 1px solid #e4dfd3; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: #8a8599; display: flex; justify-content: space-between; }
.hm-nf-card-body { padding: 18px; display: grid; gap: 12px; font-size: 13.5px; }
.hm-nf-row { display: flex; align-items: center; gap: 10px; }
.hm-nf-row strong { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text-on-paper); }
.hm-nf-sub { padding-left: 16px; color: #6b667e; display: flex; align-items: center; gap: 8px; }
.hm-nf-sub::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: #b3a6f0; }
.hm-attach { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 16px; }
.hm-attach span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 9px; border-radius: 8px; background: #fff; border: 1px solid #e3ddd0; color: #4b4660; }
.hm-attach span i { font-style: normal; font-weight: 700; font-size: 9.5px; padding: 1px 4px; border-radius: 4px; color: #fff; background: #d9534f; }
.hm-attach span i.web { background: #4a7bd9; } .hm-attach span i.doc { background: #2f6fbf; }
.hm-fact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-fact div { background: #fff; border: 1px solid #e8e3d8; border-radius: 12px; padding: 10px 12px; }
.hm-fact small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #6d4bff; margin-bottom: 3px; }
.hm-fact b { font-size: 13px; font-weight: 600; color: var(--text-on-paper); }
@media (max-width: 960px) {
  .hm-nf-grid { grid-template-columns: 1fr; }
  .hm-nf-grid > :first-child { order: 2; }
}
@media (max-width: 560px) {
  .hm-nf-stage { padding: 90px 0 0; }
  .hm-nf-book { width: 120px; left: 10px; }
  .hm-nf-card { margin-left: 0; }
  .hm-fact { grid-template-columns: 1fr; }
}

/* The expert headline is longer; keep it to three lines on desktop. */
.hm-hero .aud-expert h1 { font-size: clamp(40px, 5vw, 74px); }

/* Audience toggle: "(fiction)" / "(non-fiction)" as a quieter qualifier;
   on phones it drops to a second line so both buttons still fit. */
.hm-aud-kind { font-weight: 400; opacity: .7; font-size: .92em; }
@media (max-width: 560px) {
  .hm-audience button { line-height: 1.25; padding: 8px 14px; text-align: center; }
  .hm-aud-kind { display: block; font-size: 12px; }
}

/* Inline "learn more" link used on the home page */
.hm-learn { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; font-weight: 600; font-size: 15px; color: var(--muted-on-ink); transition: color .2s; }
.hm-learn:hover { color: #fff; }
.hm-learn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.hm-learn:hover svg { transform: translateX(3px); }


/* Non-fiction photo (home section, Books for experts hero) */
.hm-nf-photo { position: relative; margin: 0; }
.hm-nf-photo::before { content: ""; position: absolute; inset: 10% -5% -8% 6%; z-index: -1; border-radius: var(--r-xl); background: radial-gradient(circle at 60% 55%, rgba(255,197,107,.35), rgba(109,75,255,.2) 50%, transparent 75%); filter: blur(34px); }
.hm-nf-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hm-nf-photo .hm-chip { left: -18px; bottom: -22px; }
.hm-nf-photo--portrait { max-width: 480px; margin-inline: auto; }
.hm-nf-photo--portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 560px) { .hm-nf-photo .hm-chip { left: 10px; bottom: -20px; right: 10px; } .hm-nf-photo { margin-bottom: 26px; } }
