/* МАК Инсайт — Inner Garden. Shared web / Capacitor visual system. */
@import url('assets/fonts/fonts.css');
:root {
    --bg-main: #f7f6f2;
    --bg-card: #fffefa;
    --bg-glass: rgba(247,246,242,.95);
    --bg-accent-soft: #eeebf2;
    --bg-accent-warm: #f2eee9;
    --text-main: #352d3c;
    --text-muted: #77717d;
    --text-light: #938c98;
    --primary-pastel: #6a7762;
    --primary-gradient: linear-gradient(135deg, #65765d, #57694f);
    --hero-gradient: linear-gradient(135deg, #f1edf4, #f6f3ed);
    --secondary-gradient: linear-gradient(135deg, #eeebf1, #f2eee7);
    --gold-gradient: linear-gradient(135deg, #e7d8b9, #c7ac7d);
    --gold-border: #dfdae2;
    --accent-purple: #766382;
    --accent-rose: #9a7a87;
    --accent-gold: #887044;
    --primary: #65765d;
    --shadow-soft: 0 8px 30px rgba(50,40,57,.05);
    --shadow-glass: 0 12px 40px rgba(50,40,57,.06);
    --shadow-card: 0 18px 40px rgba(50,40,57,.09);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-bounce: .3s cubic-bezier(.2,.65,.3,1);
}
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body, body.telegram-theme { background: var(--bg-main); color: var(--text-main); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { display: block; }
button, input, textarea { font-family: inherit; }
button { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #766382; outline-offset: 5px; }
p, h1, h2, h3, h4, textarea, input { user-select: text; }
::selection { background: #e0d5e5; color: #352d3c; }
#app { width: 100%; max-width: 1280px; margin: 0 auto; min-height: 100svh; padding: 0 48px; }
.app-header { gap: 20px; padding: 23px 0 21px; background: rgba(247,246,242,.94); border-bottom: 1px solid #dedbe0; backdrop-filter: blur(18px); }
.brand { padding: 0; border: 0; background: none; color: var(--text-main); gap: 12px; text-align: left; }
.brand-logo { width: 43px; height: 48px; border-radius: 0; box-shadow: none; color: #71617d; }
.brand-logo svg { width: 43px; height: 43px; }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; }
.brand-title { background: none; -webkit-text-fill-color: currentColor; font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.8px; }
.brand-title i { font-weight: 500; }
.brand-caption { font-size: 7px; font-weight: 600; letter-spacing: 2px; color: #827889; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 30px; }
.nav-link { border: 0; background: none; padding: 12px 0; font-size: 12px; color: #6f6775; cursor: pointer; position: relative; }
.nav-link:hover { color: #352d3c; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 0; height: 1px; background: #766382; transition: width .2s; }
.nav-link:hover::after { width: 100%; }
.header-actions { gap: 12px; }
.coin-badge { border: 1px solid #dfdbe2; border-radius: 30px; background: transparent; box-shadow: none; color: #655d6d; padding: 10px 15px; gap: 7px; font-size: 12px; font-weight: 500; min-height: 40px; }
.coin-icon { color: #95815c; font-size: 16px; animation: none; }
.balance-unit { color: #827889; font-size: 10px; }
.profile-avatar-btn { width: 40px; height: 40px; border: 1px solid #dfdbe2; box-shadow: none; background: #eeebf0; flex-shrink: 0; }
.profile-initials { color: #75647f; font-weight: 500; }
.avatar-guest-svg { stroke: #75647f; stroke-width: 1.4; width: 19px; }
.pro-badge-dot { background: #75856a; border-color: var(--bg-main); }
.home-topline { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 0; font-size: 8px; font-weight: 500; letter-spacing: 1.8px; color: #877d8d; }
.home-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 5px; height: 5px; background: #7c8c6d; border-radius: 50%; }
.home-edition { font-size: 7px; letter-spacing: 1.5px; }
.atelier-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 44px 0 40px; align-items: center; min-height: 590px; }
.hero-copy { position: relative; z-index: 2; padding: 10px 0 0 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: 1.8px; line-height: 1.6; color: #887991; }
.eyebrow-line { width: 25px; height: 1px; background: #b0a2b9; }
.hero-copy h1 { font-family: var(--font-heading); font-size: clamp(60px, 6.4vw, 86px); font-weight: 400; letter-spacing: -2.8px; line-height: .99; margin: 24px 0 23px; position: relative; }
em { font-weight: 400; }
.hero-copy h1 em { color: #867092; }
.heading-star { display: inline-block; width: 41px; height: 41px; margin-left: 28px; color: #a18bad; vertical-align: top; padding-top: 7px; }
.heading-star svg { width: 100%; height: 100%; }
.hero-description { font-size: 13px; line-height: 1.9; color: #77717d; margin-bottom: 26px; }
.btn-hero { justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 9px; background: #65765d; color: #fffef8; font-size: 12px; font-weight: 500; padding: 15px 23px; box-shadow: 0 7px 16px rgba(76,95,67,.12); gap: 24px; transition: background .2s, transform .2s; }
.btn-hero svg, .text-link svg, .start-arrow svg, .site-footer svg { width: 21px; height: 21px; flex-shrink: 0; }
.btn-hero:hover, .btn-hero:active { background: #53664b; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(76,95,67,.16); }
.hero-cta { min-width: 239px; }
.hero-smallprint { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: #8c8590; font-size: 8px; }
.small-divider { width: 2px; height: 2px; background: #9e97a1; border-radius: 50%; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 29px; }
.tiny-symbol { width: 30px; height: 30px; color: #a195a8; }
.tiny-symbol svg { width: 100%; height: 100%; }
.hero-proof p { font-size: 9px; line-height: 1.8; color: #8c8590; }
.hero-proof strong { font-weight: 400; color: #756c7b; }
.hero-art { height: 500px; position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; width: 430px; height: 430px; background: #eae5ef; border-radius: 50%; z-index: -3; opacity: .7; }
.art-orbit { position: absolute; border: 1px solid #ded5e4; border-radius: 50%; z-index: -2; pointer-events: none; }
.orbit-one { width: 465px; height: 465px; }
.orbit-two { width: 500px; height: 500px; border-color: #e8e2ec; }
.art-card { position: absolute; width: 202px; height: 300px; padding: 9px 9px 0; background: #fffdf7; border: 1px solid #e5dfe4; border-radius: 100px 100px 8px 8px; box-shadow: 0 20px 35px rgba(65,46,73,.16); transform-origin: 50% 85%; overflow: hidden; }
.art-card img { display: block; width: 100%; height: calc(100% - 29px); object-fit: cover; border-radius: 95px 95px 2px 2px; }
.art-card > span { display: flex; align-items: center; justify-content: center; height: 29px; gap: 15px; font-size: 6px; letter-spacing: 1.1px; color: #8e7e98; }
.art-card-left { transform: translate(-128px, 20px) rotate(-17deg); z-index: 1; }
.art-card-right { transform: translate(125px, 14px) rotate(17deg); z-index: 2; }
.art-card-main { width: 223px; height: 342px; transform: translate(0, -13px) rotate(-3deg); z-index: 3; animation: card-arrive 1s cubic-bezier(.2,.65,.3,1) both; }
.art-card-main > span { justify-content: space-between; height: 31px; padding: 0 5px; }
.art-card-main i { font-family: var(--font-heading); font-size: 12px; }
.art-card-main svg { width: 12px; height: 12px; }
.art-caption { position: absolute; bottom: 11px; left: 50%; width: max-content; transform: translateX(-50%); color: #a091a9; font-size: 7px; letter-spacing: 2px; display: flex; gap: 12px; align-items: center; }
.caption-line { width: 24px; height: 1px; background: #c4b9cb; }
.art-spark { position: absolute; z-index: 5; color: #9a84a7; }
.spark-one { top: 22px; left: 77px; font-size: 47px; font-weight: 300; }
.spark-two { right: 24px; bottom: 101px; font-size: 25px; }
.art-note { position: absolute; right: -2px; top: 46px; transform: rotate(7deg); font-family: var(--font-heading); font-size: 20px; color: #8e7a9a; line-height: 1.2; z-index: 5; }
@keyframes card-arrive { from { opacity: 0; transform: translate(0, 14px) rotate(2deg); } to { opacity: 1; transform: translate(0,-13px) rotate(-3deg); } }
.ritual-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 30px; border-top: 1px solid #dedbe0; border-bottom: 1px solid #dedbe0; color: #8a818e; font-size: 10px; }
.ritual-strip > span { display: flex; align-items: center; gap: 10px; }
.ritual-strip > span:first-child { font-size: 8px; letter-spacing: 1.7px; color: #73637f; }
.ritual-strip svg { width: 17px; height: 17px; }
.ritual-strip > span + span::before { content: '·'; color: #c0b5c7; margin-right: 15px; }
.practices-section { padding: 69px 0 60px; scroll-margin-top: 10px; }
.section-title { padding: 0; margin: 0 0 28px; align-items: flex-end; gap: 20px; }
.section-title .eyebrow { margin-bottom: 13px; }
.section-title h2, .author-story h2, .how-title h2 { font-family: var(--font-heading); font-size: 43px; font-weight: 400; letter-spacing: -1.2px; line-height: 1.1; }
.section-title h2 em, .author-story h2 em, .how-title h2 em { color: #887192; }
.section-intro { font-size: 11px; line-height: 1.9; color: #8a818e; padding-bottom: 4px; }
.mobile-break { display: none; }
.techniques-grid { padding: 0; gap: 18px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.technique-card { text-align: left; color: inherit; background: transparent; border: 0; border-radius: 13px; box-shadow: none; font-family: var(--font-body); overflow: visible; padding: 0; min-width: 0; }
.technique-card:hover, .technique-card:active { transform: translateY(-5px); border: 0; box-shadow: none; }
.technique-preview-img-box { display: block; height: 220px; border-radius: 11px; isolation: isolate; }
.technique-preview-img-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,28,52,.13), transparent 38%, rgba(32,25,41,.32)); z-index: 1; }
.technique-preview-img { filter: saturate(.7); transition: transform .6s cubic-bezier(.2,.65,.3,1), filter .4s; object-position: 50% 45%; }
.technique-card:hover .technique-preview-img { transform: scale(1.055); filter: saturate(.95); }
.theme-number { position: absolute; z-index: 2; top: 15px; left: 14px; font-size: 7px; letter-spacing: 1.5px; color: #fff; }
.cost-tag-overlay { z-index: 3; top: auto; bottom: 13px; left: 13px; right: auto; background: rgba(250,248,242,.92); color: #514653; border: 0; font-size: 8px; font-weight: 500; padding: 6px 10px; box-shadow: none; }
.technique-card-content { display: flex; flex-direction: column; padding: 18px 2px 0; }
.technique-name { display: block; font-family: var(--font-heading); font-size: 27px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 5px; line-height: 1.1; }
.technique-desc { display: block; font-size: 10px; line-height: 1.7; color: #8b818f; margin-bottom: 16px; }
.technique-footer { display: flex; align-items: center; padding-top: 12px; border-top: 1px solid #e1dce4; gap: 12px; }
.technique-footer > span:first-child { font-size: 8px; line-height: 1.7; color: #8b818f; max-width: 150px; }
.start-arrow { background: transparent; border: 1px solid #d9d2df; color: #877491; width: 28px; height: 28px; flex-shrink: 0; }
.start-arrow svg { width: 15px; height: 15px; }
.technique-card:hover .start-arrow { background: #877491; }
.author-story { display: flex; align-items: center; gap: 32px; background: #eeebf0; border-radius: 17px; padding: 34px 40px; }
.author-portrait { width: 132px; height: 158px; position: relative; flex-shrink: 0; }
.author-portrait > img { width: 100%; height: 100%; object-fit: cover; border-radius: 70px 70px 9px 9px; filter: saturate(.68); }
.author-portrait > span { position: absolute; right: -11px; bottom: 2px; color: #91809d; background: #eeebf0; border-radius: 50%; padding: 8px; width: 40px; height: 40px; }
.author-portrait svg { width: 100%; height: 100%; }
.author-story .eyebrow { font-size: 7px; letter-spacing: 1.6px; margin-bottom: 14px; }
.author-story h2 { font-size: 35px; }
.author-story p { font-size: 10px; line-height: 1.8; color: #8c8193; margin-top: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; border: 0; border-bottom: 1px solid #c8bdce; background: none; color: #75617e; padding: 0 0 7px; margin-top: 17px; font-size: 10px; cursor: pointer; }
.text-link svg { width: 16px; height: 16px; }
.author-signature { margin-left: auto; padding-left: 20px; font-family: var(--font-heading); font-size: 32px; line-height: .95; color: #9e8cab; transform: rotate(-8deg); }
.author-signature span { display: block; margin-top: 16px; font-family: var(--font-body); letter-spacing: 2px; font-size: 6px; transform: rotate(8deg); }
.how-section { padding: 74px 0; display: grid; grid-template-columns: .85fr 2fr; gap: 55px; }
.how-title .eyebrow { margin-bottom: 13px; }
.how-title h2 { font-size: 38px; }
.how-title > p { font-size: 10px; line-height: 1.9; color: #8a818e; margin-top: 16px; }
.how-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 29px; padding-top: 8px; }
.how-steps article { border-top: 1px solid #ddd6e2; padding-top: 16px; }
.step-number { font-family: var(--font-heading); font-size: 29px; font-style: italic; color: #ac9bb6; }
.how-steps h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 500; margin: 20px 0 10px; }
.how-steps p { font-size: 10px; line-height: 1.9; color: #8a818e; }
.quiet-cta { display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 1px solid #dedbe0; padding: 42px 0 48px; }
.quiet-cta > span { width: 26px; height: 26px; color: #a28cae; }
.quiet-cta svg { width: 100%; height: 100%; }
.quiet-cta p { font-family: var(--font-heading); font-size: 41px; font-weight: 400; line-height: 1.1; margin: 17px 0 22px; }
.quiet-cta p em { color: #867092; }
.quiet-cta .btn-hero svg { width: 20px; height: 20px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #dedbe0; padding: 28px 0; }
.footer-brand { font-family: var(--font-heading); font-size: 24px; }
.footer-brand small { display: block; font-family: var(--font-body); font-size: 7px; color: #938997; margin-top: 7px; }
.site-footer > div { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.site-footer button { display: flex; gap: 14px; align-items: center; border: 0; background: none; font-size: 10px; color: #73637f; cursor: pointer; }
.site-footer > div > span, .site-footer > p { font-size: 7px; color: #938997; }
.site-footer svg { width: 16px; height: 16px; }
.mobile-nav { display: none; }
/* The original session engine and its card geometry are retained. */
.screen:not(#screen-home) { width: 100%; max-width: 820px; margin: 0 auto; padding-bottom: 42px; }
.screen-header { position: relative; top: auto; padding: 30px 0 20px; background: transparent; gap: 18px; }
.btn-back { border: 1px solid #ddd5e2; background: transparent; box-shadow: none; color: #80708c; width: 44px; height: 44px; flex-shrink: 0; font-weight: 400; }
.screen-title-group h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 500; letter-spacing: -.7px; }
.screen-title-group p { font-size: 11px; color: #8a818e; line-height: 1.7; }
.screen-category-badge { background: #eeebf0; color: #877092; border: 0; font-size: 10px; font-weight: 500; }
.techniques-list-container { padding: 10px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.technique-item-card { padding: 24px; background: #fffefa; border: 1px solid #e3dde5; box-shadow: none; border-radius: 16px; transition: transform .2s, border-color .2s; }
.technique-item-card:hover { background: #f3f0f5; border-color: #c7b8d0; box-shadow: none; transform: translateY(-3px); }
.technique-item-header { flex-wrap: wrap; align-items: start; gap: 12px; }
.technique-item-title { font-family: var(--font-heading); font-size: 25px; line-height: 1.05; font-weight: 500; }
.technique-item-badge { font-size: 9px; font-weight: 500; background: #efedf1; color: #80708c; white-space: nowrap; }
.technique-item-desc { font-size: 12px; line-height: 1.8; margin-top: 13px; color: #817786; }
.step-question-box { background: #efebf2; border: 1px solid #e2dbe7; box-shadow: none; margin: 10px 0 20px; padding: 22px; border-radius: 16px; }
.step-question-text { font-family: var(--font-heading); font-size: calc(27px * var(--font-scale, 1)) !important; font-weight: 500; color: #57465f; line-height: 1.3; }
.deck-fan-wrapper { background: #f0edf2; border: 1px solid #e4dce8; box-shadow: none; margin: 0 0 24px; }
.fan-pointer-hint { background: #faf8fc; color: #7f6d8a; border-color: #e1d8e7; box-shadow: none; font-weight: 500; font-size: 11px; }
.btn-fan-random { background: #fffefa; color: #6c5c77; border: 1px solid #d9cfe0; box-shadow: none; font-family: inherit; font-weight: 500; }
.btn-fan-random:hover { box-shadow: 0 5px 20px rgba(70,50,80,.08); background: #e8e0ee; }
.spread-progress-badge, .spread-slots-hint { color: #887391; }
.spread-slot-item { border-color: #d8ccdf; background: #efebf2; }
.spread-slot-item.slot-current { border-color: #a18aac; box-shadow: 0 4px 18px rgba(112,89,126,.13); }
.reflection-box { margin: 10px 0 0; padding: 22px; background: #fffefa; border: 1px solid #e1dbe5; box-shadow: none; }
.reflection-textarea, #custom-question-input { background: #faf8fb !important; color: #4d4057; border: 1px solid #dfd5e5 !important; font-size: 15px; line-height: 1.8; }
.reflection-textarea:focus { border-color: #9b85a8 !important; box-shadow: 0 0 0 3px #eee7f2; }
.btn-step-next, .btn-submit-reflection, .btn-claim-bonus, .btn-author-action { background: #65765d; color: #fff; border: 0; box-shadow: none; border-radius: 10px; font-weight: 500; }
.btn-step-prev, .btn-secondary, .btn-redraw { background: #fffefa; color: #81708d; border: 1px solid #dfd6e5; border-radius: 10px; font-weight: 500; box-shadow: none; }
.btn-secondary:hover, .btn-step-prev:hover, .btn-redraw:hover { background: #efebf2; }
.ai-loading-box { padding: 45px 20px; }
.ai-loading-box h3 { font-family: var(--font-heading); font-size: 28px; font-weight: 500; margin-bottom: 12px; }
.ai-orb-spinner { box-shadow: 0 0 35px #ded3e6; border-color: #c2adce; }
.ai-result-box { padding: 0; }
.ai-section-card, .base-card-section { background: #fffefa; border: 1px solid #e3dce7; box-shadow: none; border-radius: 16px; }
.ai-section-card.final-synthesis, .base-upsell-card { background: #f0edf3; border-color: #dfd6e5; }
.ai-section-card::before, .ai-section-card.final-synthesis::before { background: #8f7a9a; }
.ai-section-title { font-family: var(--font-heading); font-weight: 500; color: #695576; }
.ai-section-badge, .ai-section-card.final-synthesis .ai-section-badge, .base-keyword-tag { background: #eee7f2; color: #7b6489; font-weight: 500; }
.ai-section-body strong { color: #73607e; }
.base-reflection-box { background: #f4f1f6; border-color: #e0d5e7; }
.reader-toolbar { background: #eeebf0; border: 1px solid #dfd8e4; color: #7b6489; border-radius: 12px; }
.reader-toolbar-title { color: #7b6489; }
.font-btn.active, .segmented-btn.active { background: #8c7898; color: #fff; box-shadow: none; }
.modal-backdrop { background: rgba(36,28,43,.3); backdrop-filter: blur(12px); }
.profile-drawer { background: #f9f8f4; border-color: #e3dce7; box-shadow: 0 10px 80px rgba(36,28,43,.14); max-width: 560px; padding: 30px; }
.drawer-header { border-bottom: 1px solid #e2dce5; padding-bottom: 17px; margin-bottom: 22px; }
.drawer-header h3 { font-size: 29px; font-weight: 500; }
.btn-close-drawer { min-width: 36px; min-height: 36px; background: #eeebf0; color: #877391; border-radius: 50%; font-size: 14px; }
.profile-card-header { background: #eeebf0; border-color: #dfd7e5; box-shadow: none; }
.profile-large-avatar { background: #e2dae7; border: 1px solid #cdbed7; box-shadow: none; }
.profile-large-avatar .avatar-guest-svg-large { stroke: #8c7898; }
.profile-details h4 { font-family: var(--font-heading); font-size: 28px; font-weight: 500; }
.settings-group-card, .review-form-card, .review-view-card { border: 1px solid #e3dce7; background: #fffefa; box-shadow: none; }
.settings-group-title { font-weight: 500; color: #7f6a8d; }
.segmented-font-selector { background: #eeebf0; }
.tariff-item { background: #fffefa; border: 1px solid #dfd6e5; box-shadow: none; border-radius: 13px; }
.tariff-item.popular { border-color: #a18aaa; background: #f0eaf4; }
.tariff-item.popular::after { background: #927c9e; font-weight: 500; }
.tariff-item.pro-tariff { background: #e8ede4; border-color: #c3cfb9; }
.tariff-coins { color: #776181; font-weight: 500; }
.tariff-price { font-weight: 600; color: #4f4558; }
.history-item { border: 1px solid #e3dce7; background: #fffefa; box-shadow: none; }
.history-item:hover { background: #eeebf0; box-shadow: none; border-color: #cec0d7; }
.history-item-action { background: #eee7f3; color: #897294; }
.referral-box, .author-bonus-card { background: #e9eee5; border-color: #cbd6c2; }
.btn-copy-ref { background: #65765d; color: #fff; box-shadow: none; }
.author-card-avatar, .author-avatar-mini { border-color: #d5c9dd; box-shadow: none; }
.author-subtitle-badge { background: #eee7f3; color: #887294; }
.author-consult-card { background: #f0edf2; border-color: #dfd6e5; }
.author-consult-title { color: #7a6386; }
.btn-auth-provider { border: 1px solid #dfd6e5; background: #fffefa; box-shadow: none; border-radius: 12px; }
.btn-auth-provider:hover { border-color: #bba7c6; background: #f3eef6; box-shadow: none; }
.auth-provider-text { font-weight: 500; }
.security-privacy-box { background: #eaf0e5; color: #6c7d60; border-color: #d1dcc6; }
.author-bonus-pill { background: #eaf0e5; color: #6c7d60; }
.legal-link-item { color: #7e698b; border-color: #e3dce7; background: #f1edf4; }
.toast { background: #45394f; border-color: #6c5c77; color: #fff; box-shadow: 0 10px 40px rgba(40,20,50,.2); border-radius: 12px; font-weight: 400; }
.card-zoom-modal { background: rgba(31,25,36,.96); }
.zoom-trigger-badge { background: rgba(48,36,57,.7); border-color: rgba(255,255,255,.2); color: #fff; }
@media (min-width: 761px) {
    #profile-modal .profile-drawer, #author-modal .profile-drawer, #history-detail-modal .profile-drawer, #support-modal .profile-drawer { top: 50%; bottom: auto; left: 50%; border-radius: 22px; width: calc(100% - 48px); max-height: 86svh; transform: translate(-50%,-46%); opacity: 0; }
    #profile-modal.active .profile-drawer, #author-modal.active .profile-drawer, #history-detail-modal.active .profile-drawer, #support-modal.active .profile-drawer { transform: translate(-50%,-50%); opacity: 1; }
    #history-detail-modal .profile-drawer { max-width: 800px; }
}
@media (max-width: 1100px) {
    #app { padding: 0 32px; }
    .desktop-nav { gap: 22px; margin-right: 10px; }
    .hero-copy { padding-left: 10px; }
    .hero-art { transform: scale(.87); transform-origin: 50% 50%; }
    .atelier-hero { gap: 0; min-height: 530px; padding-top: 25px; padding-bottom: 25px; }
    .hero-copy h1 { font-size: 72px; }
    .technique-preview-img-box { height: 190px; }
    .technique-name { font-size: 24px; }
    .author-story { padding: 30px; gap: 25px; }
    .author-story h2 { font-size: 31px; }
    .author-signature { font-size: 27px; padding-left: 0; }
    .how-section { gap: 30px; }
    .how-steps { gap: 20px; }
}
@media (max-width: 900px) {
    .desktop-nav { gap: 18px; }
    .nav-link { font-size: 10px; }
    .brand-title { font-size: 25px; }
    .brand-caption { font-size: 6px; letter-spacing: 1.5px; }
    .brand-logo { width: 35px; }
    .brand-logo svg { width: 35px; }
    .home-edition { display: none; }
    .atelier-hero { grid-template-columns: .9fr 1fr; }
    .hero-copy h1 { font-size: 63px; }
    .hero-description { font-size: 11px; }
    .hero-smallprint { font-size: 7px; gap: 6px; }
    .hero-art { transform: scale(.73); }
    .art-note { right: -40px; }
    .techniques-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; }
    .technique-preview-img-box { height: 240px; }
    .technique-name { font-size: 29px; }
    .ritual-strip { padding: 20px 0; gap: 10px; }
    .ritual-strip > span { font-size: 8px; }
    .ritual-strip > span + span::before { margin-right: 0; }
    .author-signature { display: none; }
    .author-story-copy { flex: 1; }
    .how-section { grid-template-columns: 1fr; gap: 30px; }
    .how-title h2 br { display: none; }
    .how-title > p br { display: none; }
    .how-title > p { margin-top: 12px; }
    .how-title h2 { font-size: 40px; }
}
@media (max-width: 760px) {
    html { scroll-padding-top: 85px; }
    #app { padding: 0 22px calc(80px + env(safe-area-inset-bottom, 0px)); }
    .app-header { padding-top: max(14px,env(safe-area-inset-top,0px)); padding-bottom: 14px; gap: 10px; }
    html.capacitor-native .app-header { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
    html.capacitor-native .screen-header { padding-top: 24px; }
    .desktop-nav { display: none; }
    .brand { gap: 8px; }
    .brand-title { font-size: 26px; }
    .brand-caption { font-size: 5px; letter-spacing: 1.8px; }
    .brand-logo { width: 32px; height: 38px; }
    .brand-logo svg { width: 32px; height: 32px; }
    .coin-badge { padding: 8px 11px; font-size: 11px; min-height: 36px; }
    .balance-unit { display: none; }
    .header-actions { gap: 8px; }
    .profile-avatar-btn { width: 36px; height: 36px; }
    .home-topline { padding-top: 22px; font-size: 6px; letter-spacing: 1.55px; }
    .atelier-hero { display: flex; flex-direction: column; min-height: auto; padding: 30px 0 0; gap: 0; }
    .hero-copy { padding: 0; text-align: center; width: 100%; }
    .hero-copy .eyebrow { justify-content: center; font-size: 7px; letter-spacing: 1.5px; }
    .hero-copy h1 { font-size: 62px; letter-spacing: -1.8px; margin: 18px 0; line-height: .95; }
    .hero-copy h1 > br:nth-child(2) { display: block; }
    .heading-star { width: 29px; height: 29px; margin-left: 12px; padding-top: 4px; }
    .hero-description { font-size: 11px; line-height: 1.8; margin-bottom: 22px; }
    .hero-cta { min-width: 235px; min-height: 49px; width: auto; margin: 0 auto; }
    .hero-smallprint { justify-content: center; font-size: 7px; gap: 9px; margin-top: 12px; }
    .hero-proof { display: none; }
    .hero-art { transform: none; width: 100%; height: 350px; margin-top: 20px; }
    .hero-art::before { width: 290px; height: 290px; }
    .orbit-one { width: 317px; height: 317px; }
    .orbit-two { width: 343px; height: 343px; }
    .art-card { width: 140px; height: 210px; padding: 6px 6px 0; }
    .art-card img { height: calc(100% - 22px); }
    .art-card > span { height: 22px; font-size: 4px; }
    .art-card-left { transform: translate(-79px, 9px) rotate(-17deg); }
    .art-card-right { transform: translate(79px, 9px) rotate(17deg); }
    .art-card-main { width: 160px; height: 248px; }
    .art-card-main > span { font-size: 5px; }
    .art-card-main i { font-size: 9px; }
    .art-card-main svg { width: 9px; height: 9px; }
    .spark-one { font-size: 34px; top: 5px; left: 32px; }
    .spark-two { font-size: 20px; bottom: 57px; right: 15px; }
    .art-note { top: 16px; right: 0; font-size: 15px; }
    .art-caption { bottom: 13px; font-size: 5px; letter-spacing: 1.8px; }
    .ritual-strip { gap: 12px; padding: 17px 0; flex-wrap: wrap; justify-content: center; }
    .ritual-strip > span { font-size: 7px; }
    .ritual-strip > span:first-child { font-size: 6px; letter-spacing: 1.2px; }
    .ritual-strip > span:last-child { display: none; }
    .ritual-strip svg { width: 12px; height: 12px; }
    .ritual-strip > span + span::before { display: none; }
    .practices-section { padding: 41px 0 36px; }
    .section-title { display: block; margin-bottom: 22px; }
    .section-title .eyebrow { margin-bottom: 11px; font-size: 7px; }
    .section-title h2 { font-size: 37px; line-height: 1.05; letter-spacing: -.8px; }
    .mobile-break { display: block; }
    .section-intro { margin-top: 13px; font-size: 9px; line-height: 1.8; }
    .section-intro br { display: none; }
    .techniques-grid { gap: 25px 13px; }
    .technique-preview-img-box { height: 177px; border-radius: 10px; }
    .theme-number { left: 10px; top: 11px; font-size: 5px; letter-spacing: 1px; }
    .cost-tag-overlay { bottom: 10px; left: 9px; font-size: 7px; padding: 5px 8px; }
    .technique-card-content { padding: 13px 0 0; }
    .technique-name { font-size: 24px; line-height: 1; margin-bottom: 7px; }
    .technique-desc { font-size: 8px; line-height: 1.6; margin-bottom: 10px; }
    .technique-footer { padding-top: 9px; gap: 5px; }
    .technique-footer > span:first-child { font-size: 6px; line-height: 1.7; max-width: 100px; }
    .start-arrow { width: 24px; height: 24px; }
    .author-story { padding: 25px 19px; border-radius: 13px; gap: 18px; flex-wrap: wrap; }
    .author-portrait { width: 72px; height: 90px; }
    .author-portrait > span { width: 28px; height: 28px; padding: 5px; }
    .author-story-copy { flex-basis: 60%; }
    .author-story .eyebrow { font-size: 5px; letter-spacing: 1px; margin-bottom: 10px; }
    .author-story h2 { font-size: 25px; letter-spacing: -.4px; }
    .author-story p { font-size: 8px; margin-top: 10px; }
    .author-story .desktop-break { display: none; }
    .text-link { font-size: 8px; gap: 9px; margin-top: 13px; }
    .how-section { padding: 42px 0; gap: 25px; }
    .how-title .eyebrow { font-size: 7px; }
    .how-title h2 { font-size: 36px; }
    .how-title h2 br { display: block; }
    .how-title > p { font-size: 9px; margin-top: 13px; }
    .how-steps { grid-template-columns: 1fr; gap: 19px; padding: 0; }
    .how-steps article { padding: 17px 0 0 43px; position: relative; }
    .step-number { position: absolute; top: 15px; left: 0; font-size: 24px; }
    .how-steps h3 { margin: 0 0 8px; font-size: 24px; }
    .how-steps p { font-size: 9px; line-height: 1.8; }
    .quiet-cta { padding: 32px 0 35px; }
    .quiet-cta p { font-size: 34px; }
    .quiet-cta .btn-hero { width: auto; font-size: 10px; }
    .site-footer { flex-wrap: wrap; gap: 23px; padding: 25px 0 10px; }
    .footer-brand { font-size: 25px; width: 100%; }
    .site-footer > p { margin-left: auto; font-size: 6px; align-self: flex-end; }
    .site-footer > div > span { font-size: 6px; }
    .footer-brand small { font-size: 7px; }
    .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 60; justify-content: space-around; background: rgba(250,249,246,.96); backdrop-filter: blur(18px); border-top: 1px solid #e5dfe9; padding: 11px 13px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .mobile-nav button { display: flex; flex: 1; min-height: 43px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; color: #a299a8; font-size: 8px; cursor: pointer; position: relative; }
    .mobile-nav svg { width: 20px; height: 20px; }
    .mobile-nav button.is-active { color: #776181; }
    .mobile-nav button.is-active::before { content: ''; position: absolute; top: -12px; width: 23px; height: 2px; background: #927a9e; border-radius: 2px; }
    .screen:not(#screen-home) { padding-bottom: 20px; }
    .screen-header { padding: 25px 0 20px; gap: 14px; }
    .screen-title-group h2 { font-size: 30px; }
    .screen-title-group p { font-size: 10px; }
    .techniques-list-container { grid-template-columns: 1fr; gap: 13px; padding: 0; }
    .technique-item-card { padding: 21px; }
    .technique-item-title { font-size: 25px; }
    .technique-item-desc { font-size: 11px; }
    .step-question-text { font-size: calc(25px * var(--font-scale, 1)) !important; }
    .step-question-box { padding: 20px; }
    .deck-fan-wrapper { margin-left: -8px; margin-right: -8px; }
    .reflection-box { padding: 18px; }
    .reflection-box .btn-hero { font-size: 12px; gap: 5px; }
    .profile-drawer { padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px)); max-height: 89svh; }
    .drawer-header h3 { font-size: 27px; }
    .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); font-size: 12px; }
}
@media (max-width: 374px) {
    #app { padding-left: 16px; padding-right: 16px; }
    .hero-copy h1 { font-size: 54px; }
    .hero-art { transform: scale(.9); margin-top: 4px; height: 335px; }
    .brand-title { font-size: 24px; }
    .brand-caption { letter-spacing: 1.4px; }
    .technique-preview-img-box { height: 155px; }
    .technique-name { font-size: 22px; }
    .technique-desc { font-size: 7px; }
    .author-story { gap: 13px; padding: 21px 16px; }
    .author-story h2 { font-size: 23px; }
    .author-portrait { width: 62px; height: 83px; }
    .coin-badge { padding: 8px; }
    .hero-smallprint { font-size: 6px; }
}
/* Reading sizes stay comfortable on small displays and for longer practices. */
.hero-description { font-size: 14px; color: #736b7a; }
.hero-smallprint { font-size: 10px; color: #7c7384; }
.hero-proof p { font-size: 11px; }
.hero-proof strong { color: #736b7a; }
.section-intro { font-size: 13px; color: #77707e; }
.technique-desc { font-size: 12px; color: #77707e; }
.technique-footer > span:first-child { font-size: 10px; color: #77707e; }
.cost-tag-overlay { font-size: 10px; }
.author-story p { font-size: 12px; color: #77707e; }
.text-link { font-size: 12px; }
.how-title > p, .how-steps p { font-size: 12px; color: #77707e; }
.ritual-strip { font-size: 11px; }
.footer-brand small, .site-footer > div > span, .site-footer > p { font-size: 9px; color: #77707e; }
.site-footer button { font-size: 12px; }
@media (max-width: 760px) {
    .hero-description { font-size: 13px; }
    .hero-smallprint { font-size: 9px; gap: 7px; flex-wrap: wrap; }
    .btn-hero { font-size: 13px; }
    .section-intro { font-size: 12px; }
    .technique-name { font-size: 24px; min-height: 48px; }
    .technique-desc { font-size: 11px; min-height: 35px; }
    .technique-footer { align-items: flex-end; }
    .technique-footer > span:first-child { font-size: 9px; max-width: none; }
    .cost-tag-overlay { font-size: 9px; }
    .theme-number { font-size: 7px; }
    .author-story .eyebrow { font-size: 7px; }
    .author-story h2 { font-size: 26px; }
    .author-story p { font-size: 11px; }
    .text-link { font-size: 11px; }
    .author-story { align-items: flex-start; }
    .author-portrait { margin-top: 29px; }
    .how-title > p, .how-steps p { font-size: 12px; }
    .quiet-cta .btn-hero { font-size: 12px; }
    .mobile-nav button { font-size: 10px; }
    .site-footer > div > span { max-width: 235px; line-height: 1.7; }
    .site-footer > p { font-size: 8px; }
    .home-topline { font-size: 7px; }
    .hero-copy .eyebrow, .section-title .eyebrow, .how-title .eyebrow { font-size: 8px; }
    .ritual-strip > span { font-size: 8px; }
    .ritual-strip > span:first-child { font-size: 7px; }
    .technique-item-desc { font-size: 13px; }
    .technique-item-badge { font-size: 10px; }
    .technique-item-header { display: flex; flex-direction: column; gap: 11px; }
}
@media (max-width: 374px) {
    .hero-smallprint { font-size: 8px; }
    .technique-name { font-size: 22px; min-height: 44px; }
    .technique-desc { font-size: 10px; }
    .technique-footer > span:first-child { font-size: 8px; }
    .art-card-left { transform: translate(-63px,9px) rotate(-13deg); }
    .art-card-right { transform: translate(63px,9px) rotate(13deg); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.deck-fan-wrapper { border-radius: 20px; }
.ai-section-title { font-size: calc(24px * var(--font-scale, 1)) !important; }
