:root {
  --dojo-red: #e92f36;
  --dojo-red-dark: #be1e2d;
  --dojo-ink: #17151a;
  --dojo-muted: #6c6670;
  --dojo-paper: #fffaf2;
  --dojo-card: #fff;
  --dojo-line: #ded6ca;
  --dojo-yellow: #ffc947;
  --dojo-shadow: 0 22px 60px rgba(55, 38, 28, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--dojo-ink); background: var(--dojo-paper); font-family: "IBM Plex Sans", sans-serif; }
body.dojo-operation-busy { overflow: hidden; }
button, textarea, input { font: inherit; }
a { color: var(--dojo-red); }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dojo-header { height: 76px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--dojo-line); }
.dojo-header-actions { display: flex; align-items: center; gap: 16px; }
.dojo-header-actions > a { color: var(--dojo-muted); font-size: .86rem; text-decoration: none; }
.language-selector { margin: 0; }
.language-selector select { min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid var(--dojo-line); border-radius: 8px; background: #fff; color: var(--dojo-ink); font: inherit; cursor: pointer; }
.language-selector noscript button { margin-left: 6px; }
.dojo-logo { color: var(--dojo-ink); font-family: Sora, sans-serif; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.dojo-logo span { color: var(--dojo-red); font-weight: 800; }

.dojo-hero { min-height: 590px; padding: 112px max(24px, calc((100vw - 1100px) / 2)); position: relative; overflow: hidden; background: var(--dojo-ink); color: white; }
.dojo-hero::before { content: "DOJO"; position: absolute; right: max(12px, calc((100vw - 1160px) / 2)); top: 28px; font: 800 clamp(9rem, 22vw, 21rem)/1 Sora, sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); transform: rotate(-4deg); pointer-events: none; }
.dojo-hero h1 { position: relative; max-width: 850px; margin: 18px 0 24px; font: 800 clamp(2.6rem, 6vw, 5.2rem)/1.02 Sora, sans-serif; letter-spacing: -.065em; }
.dojo-hero p { position: relative; max-width: 680px; color: #d7d1d6; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.6; }
.dojo-eyebrow { position: relative; color: var(--dojo-red); font: 500 .78rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.dojo-hero .dojo-eyebrow { color: var(--dojo-red); }

.dojo-btn { min-height: 43px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.dojo-btn:hover { transform: translateY(-1px); }
.dojo-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.dojo-btn.is-disabled { opacity: .5; pointer-events: none; transform: none; }
.dojo-btn-primary { color: white; background: var(--dojo-red); border-color: var(--dojo-red); }
.dojo-btn-primary:hover { background: var(--dojo-red-dark); }
.dojo-btn-outline { color: var(--dojo-ink); background: transparent; border-color: var(--dojo-line); }
.dojo-btn-large { position: relative; margin-top: 20px; padding: 15px 25px; }

.dojo-section-wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.dojo-section-wrap.narrow { max-width: 800px; }
.dojo-how, .dojo-chat-section, .dojo-faq { padding: 94px 0; }
.dojo-how h2, .dojo-chat-section h2, .dojo-faq h2 { margin: 10px 0 42px; font: 700 clamp(2rem, 4vw, 3.2rem)/1.1 Sora, sans-serif; letter-spacing: -.04em; }
.dojo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dojo-line); border: 1px solid var(--dojo-line); }
.dojo-steps article { padding: 34px; background: white; }
.dojo-steps span { color: var(--dojo-red); font: 500 .8rem "IBM Plex Mono", monospace; }
.dojo-steps h3 { margin: 34px 0 10px; font: 700 1.12rem Sora, sans-serif; }
.dojo-steps p { margin: 0; color: var(--dojo-muted); line-height: 1.55; }

.dojo-chat-section { background: #eee9e1; }
.dojo-recovery { margin: -20px 0 20px; padding: 16px 18px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(250px, 380px) auto; align-items: center; gap: 12px; background: rgba(255,255,255,.72); border: 1px solid #d4cbc0; border-radius: 16px; }
.dojo-recovery > div { display: flex; flex-direction: column; gap: 3px; }.dojo-recovery > div span { color: var(--dojo-muted); font-size: .82rem; }
.dojo-recovery input { width: 100%; min-height: 43px; padding: 10px 13px; border: 1px solid #cfc5ba; border-radius: 999px; outline: none; font-family: "IBM Plex Mono", monospace; }
.dojo-recovery input:focus { border-color: var(--dojo-red); box-shadow: 0 0 0 3px rgba(233,47,54,.1); }
.dojo-chat-shell { overflow: hidden; background: white; border: 1px solid #d4cbc0; border-radius: 18px; box-shadow: var(--dojo-shadow); }
.dojo-toolbar { min-height: 72px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--dojo-line); }
.dojo-toolbar > div:first-child { display: flex; flex-direction: column; }
.dojo-toolbar span { color: var(--dojo-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.dojo-toolbar strong { font: 500 .87rem "IBM Plex Mono", monospace; }
.dojo-toolbar-actions { display: flex; gap: 8px; }
.dojo-messages { height: min(650px, 66vh); min-height: 430px; overflow-y: auto; padding: 28px clamp(16px, 4vw, 45px); background: linear-gradient(rgba(255,255,255,.94),rgba(255,255,255,.94)), radial-gradient(#d5ccc2 1px, transparent 1px); background-size: auto, 18px 18px; }
.dojo-message { display: flex; align-items: flex-start; gap: 10px; max-width: 84%; margin: 0 0 18px; }
.dojo-message.is-user { margin-left: auto; flex-direction: row-reverse; }
.dojo-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--dojo-red); font: 700 .9rem Sora, sans-serif; }
.dojo-message.is-user .dojo-avatar { background: var(--dojo-ink); }
.dojo-bubble { padding: 13px 16px; background: #f2eee8; border-radius: 2px 13px 13px 13px; line-height: 1.55; white-space: pre-wrap; }
.dojo-message.is-user .dojo-bubble { color: white; background: var(--dojo-ink); border-radius: 13px 2px 13px 13px; }
.dojo-community { padding: 16px; color: #fff; background: var(--dojo-red); border-radius: 4px 13px 13px 13px; }
.dojo-community a { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: opacity .18s, text-decoration-color .18s; }
.dojo-community a:hover { color: #fff; opacity: .84; text-decoration-color: transparent; }
.dojo-thinking i { width: 6px; height: 6px; display: inline-block; margin: 0 2px; border-radius: 50%; background: var(--dojo-muted); animation: dojo-pulse 1s infinite alternate; }
.dojo-thinking-label { margin-right: 7px; color: var(--dojo-muted); font-size: .85rem; }
.dojo-thinking i:nth-child(2) { animation-delay: .2s; }.dojo-thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes dojo-pulse { to { opacity: .2; transform: translateY(-3px); } }

.dojo-plan { margin: 30px 0; scroll-margin-top: 20px; }
.dojo-plan-title { margin: 0 0 18px; font: 700 1.35rem Sora, sans-serif; }
.dojo-recommendations { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dojo-book { position: relative; min-width: 0; padding: clamp(16px, 3vw, 24px); display: grid; grid-template-columns: 112px 1fr; gap: clamp(16px, 3vw, 25px); overflow: hidden; background: #fff; border: 1px solid var(--dojo-line); border-radius: 18px; box-shadow: 0 8px 24px rgba(55,38,28,.06); }
.dojo-book.is-inspiration { background: #fff7dc; border-color: #ead394; }
.dojo-book.is-single { margin: 8px 0 24px; border-color: rgba(233,47,54,.38); box-shadow: 0 14px 34px rgba(55,38,28,.1); }
.dojo-book-cover { width: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; background: #e5ded5; box-shadow: 0 9px 19px rgba(37,29,25,.16); }
.dojo-book-cover-placeholder { display: grid; place-items: center; color: #8d8379; font: 700 1.2rem Sora, sans-serif; }
.dojo-book small { color: var(--dojo-red); font: 500 .68rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.dojo-book h3 { margin: 5px 0 2px; font: 700 1.2rem/1.25 Sora, sans-serif; }
.dojo-book .author { margin: 0 0 2px; color: var(--dojo-muted); font-size: .9rem; }
.dojo-book .dojo-book-language { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 10px; color: var(--dojo-muted); font-size: .82rem; }
.dojo-book-language-label { color: var(--dojo-ink); font-weight: 600; }
.dojo-book-language-flag { flex: 0 0 auto; width: 1.35rem; }
.dojo-book-language-name { font-weight: 600; }
.dojo-book p { margin: 8px 0; font-size: .92rem; line-height: 1.5; }
.dojo-book blockquote { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--dojo-red); color: #504951; font-size: .88rem; font-style: italic; }
.dojo-book-fit { padding: 10px 12px; background: rgba(238,233,225,.65); border-radius: 10px; }
.dojo-founder { display: flex; align-items: center; gap: 10px; }
.dojo-founder-photo { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--dojo-line); border-radius: 10px; background: #eee9e1; }
.dojo-book .dojo-founder-copy { margin: 0; }
.dojo-linkedin-link { margin-left: 4px; display: inline-flex; text-decoration: none; border-radius: 5px; }
.dojo-linkedin-icon { width: 21px; height: 21px; display: inline-grid; place-items: center; color: #fff; background: #0a66c2; border-radius: 5px; font: 700 .72rem/1 Arial, sans-serif; }
.dojo-book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.dojo-book-actions a, .dojo-book-actions button { min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.dojo-book-actions .dojo-buy-button { color: #fff; background: var(--dojo-red); border: 1px solid var(--dojo-red); box-shadow: 0 6px 14px rgba(233,47,54,.22); }
.dojo-cart-icon { width: 19px; height: 19px; flex: 0 0 19px; color: #fff; }
.dojo-read-button { display: inline-flex; align-items: center; gap: 6px; color: var(--dojo-muted); background: transparent; border: 1px solid var(--dojo-line); }
.dojo-read-button:hover { color: var(--dojo-ink); background: #f7f3ed; }
.dojo-single-recommendation { max-width: 100%; }
.dojo-book.is-replacing-out > .dojo-book-media, .dojo-book.is-replacing-out > .dojo-book-copy { animation: dojo-book-out .38s ease forwards; }
.dojo-book-replacing { position: absolute; z-index: 2; inset: 0; padding: 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; text-align: center; background: rgba(255,255,255,.9); animation: dojo-replacement-status .25s ease both; }
.dojo-book-replacing .dojo-loader { width: 32px; height: 32px; margin: 0 0 3px; }
.dojo-book-replacing > span:last-child { color: var(--dojo-muted); font-size: .82rem; }
.dojo-book.is-replacing-in { animation: dojo-book-in 1.15s cubic-bezier(.2,.75,.25,1) both; }
@keyframes dojo-book-out { to { opacity: .08; transform: translateX(-26px) scale(.98); } }
@keyframes dojo-replacement-status { from { opacity: 0; } to { opacity: 1; } }
@keyframes dojo-book-in {
  0% { opacity: 0; transform: translateY(22px) scale(.98); box-shadow: 0 0 0 rgba(233,47,54,0); }
  42% { opacity: 1; transform: translateY(0) scale(1.01); border-color: var(--dojo-red); box-shadow: 0 0 0 6px rgba(233,47,54,.14), 0 18px 36px rgba(55,38,28,.14); }
  100% { opacity: 1; transform: none; box-shadow: 0 8px 24px rgba(55,38,28,.06); }
}

.dojo-composer { padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; border-top: 1px solid var(--dojo-line); }
.dojo-plan-jump { grid-column: 1 / -1; justify-self: start; color: var(--dojo-red); font-size: .8rem; font-weight: 700; text-decoration: none; }
.dojo-composer textarea { grid-column: 1; grid-row: 2; width: 100%; max-height: 160px; min-height: 50px; padding: 13px 15px; resize: none; border: 1px solid #cfc5ba; border-radius: 14px; outline: none; }
.dojo-composer textarea:focus { border-color: var(--dojo-red); box-shadow: 0 0 0 3px rgba(233,47,54,.1); }
.dojo-composer-meta { grid-column: 1; grid-row: 3; display: flex; justify-content: space-between; color: var(--dojo-muted); font-size: .75rem; }
.dojo-composer > button { grid-row: 2; grid-column: 2; }
.dojo-error { margin: 0; padding: 12px 20px; color: #8a1520; background: #fff0f0; border-top: 1px solid #efb8bc; }
.dojo-privacy { color: var(--dojo-muted); text-align: center; font-size: .82rem; }

.dojo-faq details { border-top: 1px solid var(--dojo-line); }
.dojo-faq details:last-child { border-bottom: 1px solid var(--dojo-line); }
.dojo-faq summary { padding: 22px 5px; cursor: pointer; font: 600 1.05rem Sora, sans-serif; }
.dojo-faq details p { margin: 0; padding: 0 5px 23px; color: var(--dojo-muted); line-height: 1.6; }
.dojo-footer { min-height: 135px; padding: 30px max(20px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; gap: 24px; color: #ddd; background: var(--dojo-ink); }
.dojo-footer strong { color: white; font-family: Sora, sans-serif; }.dojo-footer span { margin-right: auto; }.dojo-footer a { color: var(--dojo-yellow); }

.dojo-modal { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(15,12,16,.72); }
.dojo-modal-card { position: relative; width: min(480px, 100%); padding: 34px; background: white; border-radius: 7px; box-shadow: var(--dojo-shadow); }
.dojo-modal-card h2 { margin: 8px 0; font: 700 1.7rem Sora, sans-serif; }
.dojo-modal-close { position: absolute; top: 8px; right: 11px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.dojo-qr { min-height: 210px; margin: 22px auto; display: grid; place-items: center; }.dojo-qr img, .dojo-qr canvas { max-width: 210px; }
.dojo-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.dojo-plan-heading .dojo-plan-title{margin:0}.dojo-plan-heading label{display:flex;align-items:center;gap:10px;color:var(--dojo-muted);font-size:.82rem;font-weight:700}.dojo-plan-heading select{max-width:220px;padding:9px 34px 9px 11px;border:1px solid var(--dojo-border);border-radius:8px;color:var(--dojo-ink);background:var(--dojo-paper);font:inherit}@media(max-width:640px){.dojo-plan-heading{align-items:flex-start;flex-direction:column}.dojo-plan-heading label{width:100%;align-items:flex-start;flex-direction:column}.dojo-plan-heading select{width:100%;max-width:none}}
.dojo-modal-card label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; }
.dojo-copy-row { display: flex; gap: 7px; }.dojo-copy-row input { min-width: 0; flex: 1; padding: 10px; border: 1px solid var(--dojo-line); }
.dojo-copy-status { min-height: 20px; margin: 8px 0 0; color: #24703d; font-size: .82rem; }
.dojo-loading-overlay { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,21,26,.72); backdrop-filter: blur(4px); }
.dojo-loading-card { width: min(390px, 100%); padding: 30px; display: flex; align-items: center; flex-direction: column; gap: 9px; text-align: center; background: #fff; border-radius: 20px; box-shadow: var(--dojo-shadow); }
.dojo-loading-card > span:last-child { color: var(--dojo-muted); font-size: .85rem; }
.dojo-loader { width: 38px; height: 38px; margin-bottom: 5px; border: 3px solid #f2d6d8; border-top-color: var(--dojo-red); border-radius: 50%; animation: dojo-spin .8s linear infinite; }
@keyframes dojo-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .dojo-header { height: 64px; }.dojo-header-actions > a { display: none; }
  .dojo-hero { min-height: 530px; padding-top: 78px; }.dojo-hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .dojo-how, .dojo-chat-section, .dojo-faq { padding: 68px 0; }
  .dojo-steps { grid-template-columns: 1fr; }.dojo-steps article { padding: 25px; }.dojo-steps h3 { margin-top: 18px; }
  .dojo-toolbar { align-items: flex-start; flex-direction: column; }.dojo-toolbar-actions { width: 100%; }.dojo-toolbar-actions > * { flex: 1; }
  .dojo-recovery { margin-top: -24px; grid-template-columns: 1fr; }.dojo-recovery button { width: 100%; }
  .dojo-messages { height: 62vh; min-height: 410px; padding: 20px 12px; }.dojo-message { max-width: 95%; }
  .dojo-book { grid-template-columns: 76px 1fr; padding: 13px; gap: 13px; border-radius: 14px; }.dojo-book-cover { width: 76px; border-radius: 7px; }.dojo-book h3 { font-size: 1rem; }
  .dojo-composer { grid-template-columns: 1fr; }.dojo-composer textarea { grid-column: 1; grid-row: 2; }.dojo-composer > button { grid-column: 1; grid-row: 4; }.dojo-composer-meta { grid-column: 1; grid-row: 3; }
  .dojo-footer { align-items: flex-start; flex-direction: column; gap: 10px; }.dojo-footer span { margin: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
