/* Shared shell, contact stationery and editorial accents. */
#main:focus { outline: none; }
#main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.site-header { background: #f7eee5; border: 0; padding: 10px 26px 0; }
.header-inner { background: #2f1b0e; color: #fffaf5; border-radius: 24px; min-height: 76px; padding: 8px 28px; gap: 24px; max-width: 1228px; box-shadow: 0 10px 24px rgb(47 27 14 / 10%); }
.header-inner .brand { color: #fffaf5; font-style: italic; font-size: 30px; }
.header-inner .brand span { color: #eed1c0; }
.top-nav { gap: 6px; }
.top-nav a { padding: 12px 14px; border-radius: 999px; font-size: 12px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.top-nav a.active { background: #eed1c0; color: #2f1b0e; }
.top-nav a.active::after { display: none; }
.top-nav a:hover { background: #5c3c28; color: #fffaf5; }
.login-button { background: #fffaf5; color: #2f1b0e; border: 0; border-radius: 999px; font-size: 12px; padding: 10px 17px; }
.login-button:hover { background: #eed1c0; }
.header-inner :focus-visible { outline-color: #eed1c0; }
.header-inner .login-button:focus-visible { outline-color: #fffaf5; }
.hero-topics li { color: #59361f; }
.contact-footer { max-width: 1228px; margin: 70px auto 24px; padding: 64px 52px 28px; border-radius: 36px; background: #2f1b0e; color: #f7eee5; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-bottom: 54px; }
.footer-sticker { display: inline-block; padding: 8px 24px; background: #eed1c0; color: #2f1b0e; border-radius: 5px; transform: rotate(-5deg); font: italic 800 24px 'Roboto Condensed', sans-serif; margin-bottom: 24px; }
.footer-top h2 { font: italic 800 clamp(36px,4vw,58px)/1.02 'Roboto Condensed',sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.footer-socials { display: grid; gap: 16px; }
.social-plaque { display: flex; gap: 16px; align-items: center; background: #eed1c0; color: #2f1b0e; padding: 20px 26px; border: 0; border-radius: 999px; min-height: 90px; width: 100%; text-decoration: none; box-shadow: 0 8px 18px rgb(0 0 0 / 18%); text-align: left; transition: transform .2s ease, background .2s ease; }
.social-plaque.telegram { transform: rotate(-3deg); }
.social-plaque.instagram { background: #fffaf5; transform: rotate(2deg); }
.social-plaque:hover { transform: rotate(0deg) translateY(-3px); background: #f2ddcc; }
.social-plaque strong { display: block; font-size: 23px; letter-spacing: -.025em; }
.social-plaque small { font-size: 11px; }
.social-plaque > .icon { margin-left: auto; width: 25px; height: 25px; }
.social-symbol { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.social-symbol svg { width: 38px; height: 38px; }
.footer-bottom { display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 30px; border-top: 1px solid #75533e; padding-top: 30px; font-size: 11px; }
.footer-owner .brand { color: #fffaf5; margin-bottom: 12px; }
.footer-owner .brand span { color: #eed1c0; }
.footer-owner p { margin-top: 5px; color: #dfcbb9; }
.footer-documents,.footer-meta { display: flex; flex-direction: column; align-items: flex-start; }
.footer-documents a,.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: #977560; }
.footer-documents a:hover,.footer-meta a:hover { color: #e7b895; }
.footer-button { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid #977560; background: transparent; color: #fffaf5; padding: 8px 14px; border-radius: 999px; font-size: 11px; }
.footer-button:hover { background: #5c3c28; }
.footer-meta > span { color: #dfcbb9; margin-top: 10px; }
.footer-footnote { color: #d3bba7; font-size: 10px; margin-top: 25px; max-width: 95ch; }
.contact-footer :focus-visible { outline-color: #eed1c0; }
.social-plaque:focus-visible { outline-offset: 5px; }
.start-widget { position: fixed; bottom: 22px; right: 28px; z-index: 25; display: flex; align-items: center; gap: 4px; background: #fffaf5; padding: 5px; border-radius: 999px; box-shadow: 0 8px 30px rgb(47 27 14 / 20%); }
.widget-open { background: transparent; color: #2f1b0e; border: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600; }
.widget-dot { width: 12px; height: 12px; border-radius: 50%; background: #b87952; box-shadow: inset -2px -2px 3px #704026, inset 2px 2px 3px #eac9b2; }
.widget-close { background: #f0e5d8; color: #705b4c; border: 0; border-radius: 50%; width: 44px; height: 44px; }
.widget-open:hover,.widget-close:hover { background: #eed1c0; }
.review-dialog { width: min(820px,calc(100% - 24px)); max-width: 820px; padding: 16px; background: #242424; color: #fffaf5; }
.review-dialog .dialog-header { position: sticky; top: -16px; background: #242424; color: #fffaf5; z-index: 1; padding: 10px 0; margin: 0 0 12px; align-items: center; }
.review-dialog .dialog-header h2 { font-size: 23px; }
.review-full-image { display: block; width: 100%; height: auto; border-radius: 10px; }
.enquiry-dialog { overflow: auto; padding: 38px; max-width: 560px; background: #f5dfcf; border-radius: 24px; }
.enquiry-dialog h2 { font: italic 900 46px/.98 'Roboto Condensed',sans-serif; text-transform: uppercase; }
.enquiry-sticker { display: inline-block; background: #2f1b0e; color: #fffaf5; font: italic 700 23px 'Roboto Condensed',sans-serif; padding: 8px 17px; border-radius: 5px; transform: rotate(-3deg); margin: 0 0 26px 0; }
.enquiry-privacy { font-size: 11px; color: #705b4c; margin-top: 18px; }
.legal-page { max-width: 760px; margin: 12px auto 50px; }
.legal-page h1 { font-size: clamp(34px,4vw,50px); }
.legal-status { margin: 22px 0 38px; color: #705b4c; font-size: 12px; }
.legal-page h2 { margin: 34px 0 14px; font-size: 25px; }
.legal-page p { margin-bottom: 16px; font-size: 14px; line-height: 1.9; }
.owner-details > div { border-bottom: 1px solid #d8c8b8; padding: 16px 0; font-size: 13px; }
.owner-details dt { color: #705b4c; }
.owner-details dd { margin: 4px 0 0; }

/* A paper cover introduces the workspace; the working area stays readable. */
#app[data-route=plan] .page-heading,#app[data-route=dashboard] .page-heading { position: relative; isolation: isolate; background: #eed1c0; min-height: 214px; border-radius: 20px 20px 50px 20px; padding: 34px 230px 34px 30px; margin-top: 10px; margin-bottom: 40px; }
#app[data-route=plan] .page-heading::before,#app[data-route=dashboard] .page-heading::before { content: ''; position: absolute; inset: -7px 10px 8px -7px; z-index: -1; background: #e1b99b; border-radius: 18px; transform: rotate(-1deg); }
#app[data-route=plan] .page-heading::after,#app[data-route=dashboard] .page-heading::after { content: ''; position: absolute; right: 5px; top: -15px; width: 225px; height: 225px; background: url('assets/learning-loop.png') center/contain no-repeat; pointer-events: none; }
#app[data-route=dashboard] .page-heading::after { background-image: url('assets/study-collage.png'); }
#app[data-route=plan] .page-heading h1,#app[data-route=dashboard] .page-heading h1 { display: inline-block; background: #fffaf5; padding: 6px 14px; margin-left: -7px; transform: rotate(-2deg); font: italic 900 clamp(36px,4.2vw,58px)/1 'Roboto Condensed',sans-serif; text-transform: uppercase; }
#app[data-route=plan] .page-heading p,#app[data-route=dashboard] .page-heading p { color: #59361f; }
.plan-result { border: 0; background: #fffaf5; box-shadow: 0 16px 28px rgb(47 27 14 / 11%); position: relative; }
.plan-result::before { content: ''; position: absolute; top: -12px; left: 38%; width: 85px; height: 25px; background: #c79273b8; transform: rotate(-5deg); }
.plan-layout .content-panel { background: #ecd4c1; }
.current-lesson { background: #3f281a; box-shadow: 0 13px 25px rgb(47 27 14 / 14%); }
.current-lesson h2 { font: italic 800 44px/1.05 'Roboto Condensed',sans-serif; text-transform: uppercase; }
.workspace .button { border-radius: 999px; }
@media(max-width:1100px) {
  .header-inner { gap: 12px; padding: 8px 20px; }
  .top-nav a { font-size: 11px; padding: 10px; }
  .contact-footer { margin-inline: 26px; padding: 46px 32px 26px; }
  .footer-top { gap: 38px; }
  #app[data-route=plan] .page-heading,#app[data-route=dashboard] .page-heading { padding-right: 200px; }
  #app[data-route=plan] .page-heading::after,#app[data-route=dashboard] .page-heading::after { width: 190px; }
}
@media(max-width:900px) {
  .site-header { padding: 8px 18px 0; }
  .header-inner { flex-wrap: wrap; gap: 8px 15px; padding: 12px 18px; }
  .login-button { margin-left: auto; }
  .top-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .top-nav a { font-size: 12px; }
  .footer-bottom { grid-template-columns: 1fr 1.4fr; }
  .footer-meta { grid-column: 1/-1; flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: center; }
}
@media(max-width:620px) {
  html { scroll-padding-top: 200px; }
  .site-header { padding: 6px 10px 0; }
  .header-inner { border-radius: 19px; padding: 10px 12px; gap: 6px 10px; }
  .header-inner .brand { font-size: 25px; }
  .login-button { font-size: 10px; padding: 7px 12px; gap: 7px; }
  .top-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4px 8px; overflow: visible; }
  .top-nav a { font-size: 10px; white-space: normal; padding: 8px 5px; text-align: center; min-height: 44px; }
  .contact-footer { margin: 45px 12px 20px; padding: 35px 22px 26px; border-radius: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 35px; padding-bottom: 35px; }
  .footer-top h2 { font-size: 37px; }
  .footer-sticker { margin-bottom: 20px; }
  .social-plaque { padding: 16px 18px; gap: 10px; min-height: 82px; }
  .social-plaque strong { font-size: 21px; }
  .social-symbol { width: 33px; }
  .social-plaque small { font-size: 10px; }
  .footer-bottom { display: flex; flex-direction: column; gap: 22px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
  .start-widget { right: 12px; bottom: 12px; }
  .widget-open { font-size: 11px; }
  .enquiry-dialog { padding: 26px 22px; }
  .enquiry-dialog h2 { font-size: 35px; }
  #app[data-route=plan] .page-heading,#app[data-route=dashboard] .page-heading { padding: 26px 22px; min-height: 260px; }
  #app[data-route=plan] .page-heading h1,#app[data-route=dashboard] .page-heading h1 { max-width: 100%; font-size: 36px; }
  #app[data-route=plan] .page-heading p,#app[data-route=dashboard] .page-heading p { max-width: calc(100% - 64px); }
  #app[data-route=plan] .page-heading::after,#app[data-route=dashboard] .page-heading::after { width: 104px; height: 104px; top: auto; bottom: -10px; right: -6px; }
  .current-lesson h2 { font-size: 36px; }
}
@media(prefers-reduced-motion:reduce) { .social-plaque { transition: none; } }

/* The page is a sequence of overlapping paper surfaces, not a flat canvas. */
.landing-page { --section-gutter: max(48px, calc((100vw - 1164px) / 2)); overflow: clip; background: #fffaf5; }
.landing-page h2 { font-family: 'Roboto Condensed',sans-serif; font-style: italic; font-weight: 800; font-size: clamp(40px,4.8vw,66px); line-height: 1.04; text-transform: uppercase; }
.landing-hero { max-width: none; padding: 76px var(--section-gutter) 40px; gap: 32px 36px; background: #eed1c0; }
.landing-hero::before { inset: 0; border-radius: 0; background: #eed1c0 url('assets/paper-backdrop.png') center/cover no-repeat; box-shadow: inset 0 8px 18px rgb(105 63 37 / 9%); }
.hero-copy { padding-bottom: 32px; }
.hero-copy h1 { font-size: clamp(54px,6.2vw,90px); }
.hero-copy h1 span { padding: 5px 18px 8px; box-shadow: 2px 8px 10px rgb(63 39 25 / 15%); }
.hero-copy h1 span:nth-child(2) { background: #2f1b0e; color: #fffaf5; z-index: 2; }
.hero-copy h1 span:first-child { transform: rotate(-3deg); }
.hero-copy h1 span:last-child { transform: rotate(-2deg); }
.hero-study-asset { width: 100%; max-width: 500px; filter: drop-shadow(10px 24px 14px rgb(87 52 33 / 13%)); transform: rotate(4deg); }
.hero-collage { min-height: 520px; }
.collage-paper-back { width: 80%; height: 62%; top: 17%; left: 11%; transform: rotate(13deg); box-shadow: 5px 20px 25px rgb(63 39 25 / 17%); }
.collage-paper-front { height: 64%; top: 14%; transform: rotate(-10deg); }
.collage-sticker-note { top: 0; right: -5px; transform: rotate(9deg); }
.collage-sticker-dark { left: -18px; bottom: 18px; border: 5px solid #fffaf5; border-radius: 100%; padding: 20px 26px; }
.hero-preview { grid-column: 1/-1; margin: 2px 8px -95px; padding: 34px 38px; border-radius: 5px; box-shadow: 3px 24px 34px rgb(63 39 25 / 17%); }
.hero-preview::before { inset: -12px -5px 13px 5px; background: #d1a583; border-radius: 4px; transform: rotate(2deg); }
.hero-preview::after { width: 135px; height: 31px; left: 45%; background: #bd8a65b8; opacity: 1; }
.landing-benefits { position: relative; max-width: none; padding: 180px var(--section-gutter) 110px; background: #fffaf5; }
.landing-benefits .section-intro { margin-bottom: 50px; }
.benefit-list { gap: 0; padding: 24px 18px 0; }
.benefit-paper { padding: 34px; min-height: 225px; border-radius: 2px; box-shadow: 4px 16px 26px rgb(63 39 25 / 13%); }
.benefit-paper:nth-child(1) { transform: rotate(-3deg); z-index: 2; margin-right: -6px; }
.benefit-paper:nth-child(2) { transform: rotate(2deg); margin: 28px 0 -15px -4px; background: #e8bda2; z-index: 1; }
.benefit-paper:nth-child(3) { transform: rotate(2deg); margin: -6px -2px 0 7px; background: #eed1c0; }
.benefit-paper:nth-child(4) { transform: rotate(-3deg); margin: 15px 0 0 -5px; z-index: 2; background: #f0e2cf; }
.benefit-paper h3 { font: italic 800 29px/1.12 'Roboto Condensed',sans-serif; }
.benefit-paper::before { top: -11px; left: auto; right: 26px; width: 80px; height: 27px; background: #c49d7bcc; }
.landing-dark { position: relative; max-width: none; margin: 20px 0 0; border-radius: 0; padding: 95px var(--section-gutter) 110px; gap: 100px; background: #2f1b0e; box-shadow: 0 -10px 28px rgb(63 39 25 / 13%), 0 12px 22px rgb(63 39 25 / 18%); }
.landing-dark::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 22px; background: #2f1b0e; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24' viewBox='0 0 60 24'%3E%3Cpath d='M0 24V20Q30 -18 60 20V24Z' fill='black'/%3E%3C/svg%3E") repeat-x bottom/60px 24px; }
.landing-dark::after { content: ''; position: absolute; bottom: -17px; left: 0; right: 0; height: 20px; background: #2f1b0e; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24' viewBox='0 0 60 24'%3E%3Cpath d='M0 0V4Q30 42 60 4V0Z' fill='black'/%3E%3C/svg%3E") repeat-x top/60px 24px; z-index: 2; }
.landing-dark h2 { font-size: clamp(48px,5.6vw,76px); }
.mistake-cycle li { border-radius: 3px; box-shadow: 4px 16px 22px rgb(0 0 0 / 21%); padding: 25px; }
.landing-formats { max-width: none; background: #eed1c0; padding: 120px var(--section-gutter) 100px; }
.landing-formats .section-intro h2 { display: inline-block; position: relative; }
.format-grid { gap: 55px 34px; }
.format-option { padding: 37px 36px 30px; box-shadow: 5px 20px 26px rgb(63 39 25 / 16%); }
.format-option-course { transform: rotate(-1deg); }
.format-option-trainer { transform: rotate(1deg); --folder-ground: #2f1b0e; color: #fffaf5; }
.format-option-trainer .format-description { color: #ead3c0; }
.format-option-trainer .button.primary { background: #eed1c0; color: #2f1b0e; }
.format-option-trainer li::marker { color: #e7b895; }
.format-option-async { --folder-ground: #f6e9d6; transform: rotate(.8deg); }
.format-option-history { --folder-ground: #d9b08e; transform: rotate(-1.2deg); }
.format-option::after { content: ''; position: absolute; top: -12px; right: 24px; width: 70px; height: 27px; background: #b3825fc2; transform: rotate(7deg); }
.landing-reviews { position: relative; max-width: none; padding: 95px var(--section-gutter) 88px; background: #e5c3a8; box-shadow: inset 0 9px 20px rgb(63 39 25 / 8%); }
.reviews-board { isolation: isolate; padding: 12px 0; }
.reviews-board::before { content: ''; position: absolute; z-index: -1; inset: 0 -15px 0 0; transform: rotate(3deg); background: #c99b77; border-radius: 4px; box-shadow: 7px 17px 20px rgb(63 39 25 / 14%); }
.review-card { box-shadow: 3px 12px 18px rgb(63 39 25 / 24%); }
.reviews-note { background: #fffaf5; box-shadow: 3px 7px 10px rgb(63 39 25 / 12%); transform: rotate(-4deg); }
.landing-faq { max-width: none; padding: 100px var(--section-gutter) 70px; }
.landing-cta { max-width: 1164px; margin: 30px auto; padding: 55px 48px; background: #efd2b8; border: 0; border-radius: 6px; box-shadow: 5px 19px 28px rgb(63 39 25 / 14%); transform: rotate(-1deg); }
.landing-cta::before { content: ''; position: absolute; inset: -12px 12px 10px -12px; background: #dfb795; border-radius: 4px; z-index: -1; transform: rotate(2deg); }
.landing-history-link { padding-top: 32px; }
@media(min-width:1500px) { .landing-page { --section-gutter: calc((100vw - 1164px) / 2); } }
@media(max-width:1100px) {
  .landing-page { --section-gutter: 42px; }
  .hero-copy h1 { font-size: 6.1vw; }
  .hero-collage { min-height: 490px; }
  .landing-dark { gap: 52px; }
  .landing-cta { margin-inline: 42px; }
  .format-option { padding: 32px 28px; }
}
@media(max-width:820px) {
  .landing-page { --section-gutter: 34px; }
  .landing-hero { padding-top: 55px; }
  .hero-copy h1 { font-size: clamp(44px,6vw,54px); }
  .hero-collage { min-height: 470px; }
  .hero-preview { padding: 25px; gap: 26px; }
  .landing-benefits { padding-top: 165px; }
  .landing-dark { gap: 34px; }
  .landing-page h2 { font-size: 46px; }
  .benefit-paper { padding: 27px; min-height: 255px; }
}
@media(max-width:620px) {
  .landing-page { --section-gutter: 23px; }
  .landing-hero { padding: 38px 23px 30px; grid-template-columns: minmax(0,1fr); gap: 14px; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(39px,10.7vw,66px); }
  .hero-copy h1 span { padding: 4px 10px 6px; margin-left: -6px; }
  .hero-intro { font-size: 19px; margin-top: 24px !important; }
  .hero-description { font-size: 13px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { max-width: none; }
  .hero-collage { min-height: 315px; margin: 10px 7px 20px; }
  .hero-study-asset { max-width: 315px; width: 100%; }
  .collage-paper { height: 72%; }
  .collage-sticker-note { font-size: 20px; top: 4px; right: -4px; padding: 12px; }
  .collage-sticker-dark { font-size: 20px; left: -3px; bottom: -4px; padding: 15px 18px; }
  .collage-tab { display: none; }
  .hero-preview { margin: 0 0 -80px; grid-template-columns: minmax(0,1fr); padding: 25px 22px; gap: 24px; }
  .preview-window { border-left: 0; padding-left: 0; }
  .landing-page .preview-invitation h2 { font-size: 33px; }
  .preview-caption-wrap { display: none; }
  .hero-preview::after { left: 37%; width: 90px; height: 25px; }
  .landing-benefits { padding: 150px 23px 65px; }
  .landing-page h2 { font-size: 39px; }
  .benefit-list { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 10px 8px; }
  .benefit-paper { min-height: 0; padding: 27px 24px; }
  .benefit-paper:nth-child(n) { margin: 0; transform: rotate(-2deg); }
  .benefit-paper:nth-child(even) { transform: rotate(2deg); }
  .benefit-paper h3 { font-size: 26px; }
  .landing-dark { margin-top: 18px; padding: 65px 25px; gap: 40px; }
  .landing-dark h2 { font-size: 49px; }
  .mistake-cycle li { padding: 23px 18px; }
  .landing-formats { padding: 85px 25px 65px; }
  .format-grid { gap: 56px; }
  .format-option { padding: 28px 24px; }
  .format-option h3 { font-size: 32px; }
  .landing-reviews { padding: 65px 23px; gap: 30px; }
  .reviews-board::before { right: -8px; }
  .review-gallery { padding-inline: 10px; }
  .landing-faq { padding: 65px 23px; }
  .landing-cta { margin: 20px 25px; padding: 38px 25px; }
  .landing-cta p { font-size: 13px; }
  .landing-history-link { padding: 28px 23px; }
}
