/* Homepage (index.php) in the new look of the app (app/data/css/wocabee_new.css): warm light page, white soft cards with
   a honey border, pill buttons, one consistent heading style. A layer over css/wocabee-new.css (+ responsive) - loaded
   last, it changes only the look (colours, radii, shadows, buttons, backgrounds), not the structure or the JS hooks.
   Removing this one <link> brings the old look back. New sizes in px: the homepage changes the root font size per
   breakpoint (16px desktop .. 9-10px phones). */

:root {
    --web-brand: #fba828;
    --web-brand-dark: #e09310;
    --web-brand-text: #8a5a0a;
    --web-green: #28a745;
    --web-green-dark: #1e7e34;
    --web-page: #fffbf3;          /* warm page background */
    --web-warm: #fff4dc;          /* warm bands (about us, contact) */
    --web-surface: #ffffff;
    --web-border: #EDE4D2;
    --web-text: #2e2a22;
    --web-text-soft: #4a4f55;
    --web-muted: #8A8272;
    --web-radius: 14px;
    --web-radius-lg: 18px;
    --web-shadow: 0 1px 2px rgba(46, 42, 34, .06), 0 10px 26px -12px rgba(46, 42, 34, .2);
    --web-shadow-hover: 0 2px 4px rgba(46, 42, 34, .08), 0 14px 30px -12px rgba(46, 42, 34, .28);
}

body { background: var(--web-page); color: var(--web-text-soft); font-weight: 400; }

/* ---------- headings: one style for all sections (orange, heavy) ---------- */
h2.orange-title, #how-it-works-article-header h2, #about-us-article header h2, #contact-article header h2 {
    color: var(--web-brand-dark);
    font-weight: 800;
    letter-spacing: -.01em;
}
#main-title { font-weight: 800; letter-spacing: -.015em; color: var(--web-brand); }

/* "WocaBee" in texts on light backgrounds: Woca orange, Bee black - like the logo (js/web-redesign.js wraps it) */
.wb-brand-woca { color: #f8ab21; }
.wb-brand-bee { color: #1d1d1b; }

/* ---------- header ---------- */
#main-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--web-border); box-shadow: 0 6px 18px -14px rgba(46, 42, 34, .35); }
#app-navbar .nav-link { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--web-text-soft); }
#app-navbar .nav-link:hover, #app-navbar .nav-link.active { color: var(--web-brand-dark); }
.open-app-button { border-radius: 999px !important; padding-left: 20px; padding-right: 20px; box-shadow: 0 6px 16px -8px rgba(40, 167, 69, .7); }
.language-button { border-radius: 10px; }

/* ---------- campaign notice + news ---------- */
#main-content > .container.text-center > .alert-danger {
    background: var(--web-warm); border: 1px solid #f3d9a8; color: #6b4a06; border-radius: var(--web-radius);
    font-size: 15px; line-height: 1.45; padding: 10px 16px;
}
#main-content > .container.text-center > .alert-danger a { color: var(--web-brand-dark); }
.news-card.alert-success { background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-lg); color: var(--web-text-soft); box-shadow: var(--web-shadow); }
.news-card-title { color: var(--web-text); font-weight: 800; }
#news .slick-dots li button:before { color: var(--web-brand); }

/* ---------- hero ---------- */
#main-description { color: var(--web-text-soft); }
/* standard / kids version of the phone demo: a segmented switch right above the phone (index.php .wb-version-toggle) */
#version-buttons { margin-top: 6px; margin-bottom: 0; }
.wb-version-toggle { display: flex; gap: 2px; margin: 0 auto 14px; padding: 4px; width: 100%; max-width: 340px; border-radius: 16px; background: #f3ead8; }
.wb-version-toggle .version-button {
    flex: 1 1 0; width: auto; height: auto; padding: 7px 8px; border: 0; border-radius: 12px; background: transparent; box-shadow: none;
    color: var(--web-brand-text); font-size: 12.5px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; white-space: normal; text-align: center;
}
.wb-version-toggle .version-button br { display: none; }
.wb-version-toggle .version-button small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .75; }
.wb-version-toggle .version-button.active { background: var(--web-surface); color: var(--web-brand-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

/* ---------- "revolution" (orange honeycomb band with the devices) ---------- */
/* ---------- reviews ---------- */
#switch-reviews-buttons { gap: 8px; }
.switch-reviews-button {
    border-radius: 999px; height: auto; padding: 10px 20px; border: 1.5px solid #f3d9a8; background: var(--web-surface);
    color: var(--web-brand-text); font-size: 15px; font-weight: 700; box-shadow: none;
}
.switch-reviews-button, .read-more-button, #textbook-info-button { text-transform: none; letter-spacing: 0; }
.switch-reviews-button.active { background: var(--web-brand); border-color: var(--web-brand); color: #fff; }
.review-card { border-radius: var(--web-radius-lg); border: 1px solid var(--web-border); box-shadow: var(--web-shadow); background: var(--web-surface); }
.review-title { color: var(--web-text); font-weight: 800; }
.reviews-carousel-wrapper > i.fas {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 50%; font-size: 18px;
    background: var(--web-warm); color: var(--web-brand-dark); border: 1.5px solid #f3d9a8; box-shadow: var(--web-shadow); cursor: pointer;
}
.reviews-carousel-wrapper > i.fas:hover { background: var(--web-brand); color: #fff; }

/* the rating in the intro: 5 grey stars + the orange ones over them cut to the rating (View::makeStarsHTML) */
.wb-hero-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 0; }
.wb-stars { position: relative; display: inline-block; white-space: nowrap; line-height: 1; font-size: 20px; letter-spacing: 2px; }
.wb-stars .stars-base { color: #e6dcc6; }
.wb-stars .stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--web-brand); transition: width 1.1s cubic-bezier(.3, .7, .3, 1); }
.wb-hero-rating-text { font-size: 15px; font-weight: 700; color: var(--web-text-soft); }
.wb-hero-rating-text strong { color: var(--web-text); font-weight: 800; }

/* ---------- how it works: a light card instead of the orange band ---------- */
#how-it-works-article { background: transparent; color: var(--web-text-soft); padding-bottom: 40px; }
#how-it-works-article > .container {
    background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 22px; box-shadow: var(--web-shadow);
    padding-left: 32px; padding-right: 32px; padding-bottom: 32px;
}
#how-it-works-article-header { padding-top: 32px; }
#how-it-works-wrapper { margin-top: 32px; margin-bottom: 32px; }
/* special accesses (director / parents): two tiles that open the preview modals */
#parent-and-director-section { margin-top: 26px; }
.wb-access-label { margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--web-muted); }
.wb-access-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
#how-it-works-article .wb-access-tile {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--web-radius);
    background: var(--web-surface); border: 1px solid var(--web-border); box-shadow: 0 1px 2px rgba(46, 42, 34, .06);
    color: var(--web-text); font-size: 15px; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#how-it-works-article .wb-access-tile:hover, #how-it-works-article .wb-access-tile:focus-visible {
    transform: translateY(-2px); box-shadow: var(--web-shadow-hover); border-color: #f3d9a8; color: var(--web-text); outline: 0;
}
.wb-access-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.wb-access-tile--director .wb-access-icon { background: #e8ebfa; color: #4f5bb5; }
.wb-access-tile--parents .wb-access-icon { background: #e3f6e8; color: #1e8e3e; }
.wb-access-name { flex: 1 1 auto; min-width: 0; }
.wb-access-arrow { flex: 0 0 auto; font-size: 13px; color: var(--web-muted); transition: transform .15s ease; }
.wb-access-tile:hover .wb-access-arrow { transform: translateX(3px); color: var(--web-brand-dark); }
#how-it-works-article .iframe-video { border-radius: var(--web-radius) !important; }
/* supported languages: pills with a flag + the name (the most taught ones first - index.php) */
#supported-languages-wrapper > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--web-muted); }
#supported-languages { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 0; }
#supported-languages .supported-language {
    width: auto; height: auto; overflow: visible; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px;
    background: var(--web-surface); border: 1px solid var(--web-border); box-shadow: 0 1px 2px rgba(46, 42, 34, .06);
}
#supported-languages .supported-language-icon {
    width: 26px !important; height: 26px !important; display: inline-block !important; flex: 0 0 auto;
    border-radius: 50%; border: 1px solid #c9ced4; background-size: cover;
}
.supported-language-name { font-size: 14px; font-weight: 700; color: var(--web-text); white-space: nowrap; }
#textbook-info-button {
    border-radius: 999px; background: var(--web-surface); border: 1.5px solid #f3d9a8; color: var(--web-brand-text);
    font-weight: 700; height: auto; padding: 9px 18px; box-shadow: none;
}
#textbook-info-button:hover { background: var(--web-brand); border-color: var(--web-brand); color: #fff; }

/* ---------- pricing ---------- */
#actual-price-country {
    border-radius: 999px; background: var(--web-surface); border: 1.5px solid var(--web-border); color: var(--web-text);
    font-size: 16px; box-shadow: var(--web-shadow);
}
.tier-card { border-radius: var(--web-radius-lg); }
#pricing-calculator { border-radius: var(--web-radius-lg); border: 1px solid var(--web-border); box-shadow: var(--web-shadow); }
.teacher-banner { border-radius: var(--web-radius); }

/* ---------- order process: numbered soft cards ---------- */
#order-process-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.order-process-card { border-radius: var(--web-radius-lg); border: 1px solid var(--web-border); box-shadow: var(--web-shadow); }
.order-process-card #order-process-card-title {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--web-brand); color: #fff; font-size: 20px; font-weight: 800;
}

/* ---------- about us: warm band instead of the orange one ---------- */
#orange-background { background: var(--web-warm); }
.about-us-card { border-radius: 22px; border: 1px solid var(--web-border); box-shadow: var(--web-shadow); }
.about-us-title { color: var(--web-brand-dark); font-weight: 800; }
.read-more-button {
    border-radius: 999px; background: var(--web-surface); border: 1.5px solid #f3d9a8; color: var(--web-brand-text);
    font-size: 15px; font-weight: 700; box-shadow: none;
}
.read-more-button:hover { background: var(--web-brand); border-color: var(--web-brand); color: #fff; }
.additional-info-button { color: var(--web-brand-dark); font-weight: 700; }

/* ---------- award ---------- */
#inovativny-cin-roka-video { border-radius: var(--web-radius-lg) !important; box-shadow: var(--web-shadow); }

/* ---------- FAQ: separate soft cards ---------- */
#faq-rows-wrapper { display: flex; flex-direction: column; gap: 10px; }
.faq-row, .faq-row.grey-row {
    background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius);
    box-shadow: 0 1px 2px rgba(46, 42, 34, .05); padding: 14px 18px;
}
.faq-row-question { color: var(--web-text); font-weight: 700; }
.faq-row-question i { color: var(--web-brand-dark); }
.faq-row-answer { border-top-color: var(--web-border); color: var(--web-text-soft); }

/* ---------- contact: warm band, form in a white card ---------- */
#contact-article { background: var(--web-warm); }
#contact-form-wrapper { background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 22px; box-shadow: var(--web-shadow); padding: 24px; }
#contact-form input, #contact-form #message {
    border: 1.5px solid #e3dccd; border-radius: 10px; box-shadow: none; background-color: #fff;
}
#contact-form input:focus, #contact-form #message:focus { border-color: var(--web-brand); outline: 0; box-shadow: 0 0 0 3px rgba(251, 168, 40, .25); }
#contact-form-submit-button {
    border-radius: 999px; background: var(--web-green); font-weight: 800; padding: 13px 0;
    box-shadow: 0 6px 16px -8px rgba(40, 167, 69, .7);
}
#contact-form-submit-button:hover { background: var(--web-green-dark); }
#contact-info-wrapper { color: var(--web-text); }
#contact-info-wrapper .contact-icon, #contact-info-wrapper .fab { color: var(--web-brand-dark); }

/* ---------- footer ---------- */
#wocabee-footer { background-color: #2e2a22; }

/* ---------- phones ---------- */
@media (max-width: 576px) {
    .wb-hero-rating { justify-content: center; }
    .wb-version-toggle { max-width: calc(100% - 30px); }
    #how-it-works-article > .container { border-radius: 18px; padding-left: 18px; padding-right: 18px; margin-left: 12px; margin-right: 12px; width: auto; }
    #contact-form-wrapper { padding: 16px; border-radius: 18px; }
    .reviews-carousel-wrapper > i.fas { width: 38px; height: 38px; font-size: 15px; }
}

/* how it works: the order buttons under both columns, full card width (try + paid side by side) */
.wb-how-ctas { margin: 4px 0 30px; }
.wb-how-ctas .wb-order-ctas { margin-top: 0; }

/* ---------- decent animations (js/web-redesign.js) ---------- */
/* sections / cards fade in when scrolled into view (+ a small slide when the system allows motion) */
body .wb-reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); } /* body: beats the cards' own hover transitions */
body .wb-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    body .wb-reveal { transform: translateY(22px); }
    body .wb-reveal.is-visible { transform: none; }
    /* the hero phone floats gently */
    #iphone-mockup { animation: webFloat 6s ease-in-out infinite; }
    @keyframes webFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    /* cards lift a little on hover */
    .tier-card, .order-process-card, .review-card, .wb-cap { transition: transform .2s ease, box-shadow .2s ease; }
    .tier-card:hover { transform: translateY(-3px); }
    .order-process-card:hover { transform: translateY(-3px); box-shadow: var(--web-shadow-hover); }
}

/* ---------- how a teacher creates word packages (index-packages.php) ---------- */
#packages-article { margin-top: 70px; margin-bottom: 20px; }
#packages-article > header { text-align: center; margin-bottom: 26px; }
.wb-pkg-subtitle { max-width: 680px; margin: 10px auto 0; font-size: 17px; line-height: 1.5; color: var(--web-text-soft); }
.wb-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.wb-pkg-tile {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px;
    background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-lg); box-shadow: var(--web-shadow);
}
.wb-pkg-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 12px; background: #fff2e0; color: var(--web-brand-dark); font-size: 20px;
}
.wb-pkg-tile--ai .wb-pkg-icon { background: #e3f5f7; color: #17a2b8; }
.wb-pkg-name { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--web-text); }
.wb-pkg-desc { display: block; font-size: 14.5px; line-height: 1.45; color: var(--web-text-soft); }
.wb-pkg-ai {
    position: absolute; top: -1px; right: -1px; padding: 1px 8px; border-radius: 0 18px 0 10px;
    background: var(--web-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; line-height: 1.5;
}
.wb-pkg-ai i { font-size: 9px; margin-right: 3px; vertical-align: 1px; }
/* SK / CZ / PL: by the textbook + the textbook list */
.wb-pkg-textbook {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 14px; padding: 18px 20px;
    background: var(--web-warm); border: 1px solid #f3d9a8; border-radius: var(--web-radius-lg);
}
.wb-pkg-textbook .wb-pkg-icon { background: var(--web-surface); }
.wb-pkg-textbook-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-pkg-textbook-note { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--web-brand-text); }
#packages-article #textbook-info-button { flex: 0 0 auto; font-size: 15px; margin: 0; }
@media (max-width: 576px) {
    .wb-hero-rating { justify-content: center; }
    #packages-article { margin-top: 50px; }
    #packages-article #textbook-info-button { width: 100%; }
    /* compact tiles: the icon next to the text */
    .wb-pkg-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 14px; }
    .wb-pkg-tile .wb-pkg-icon { grid-row: 1 / 3; width: 42px; height: 42px; font-size: 18px; }
    .wb-pkg-textbook { padding: 16px; }
}

/* textbook list modal: the "not in the list? no problem" note at the bottom */
.wb-textbook-note { justify-content: flex-start; align-items: flex-start; flex-wrap: nowrap; gap: 8px; background: var(--web-warm); border-top: 1px solid #f3d9a8; font-size: 14px; font-weight: 600; color: var(--web-brand-text); }
.wb-textbook-note i { color: var(--web-brand-dark); margin: 3px 0 0; }

/* ---------- what teachers notice (reviews section) ---------- */
.wb-insights { max-width: 960px; margin: 28px auto 34px; }
.wb-insights-label { margin-bottom: 10px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--web-muted); }
.wb-insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.wb-insight {
    display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; text-align: left;
    background: var(--web-surface); border: 1px solid var(--web-border); border-radius: var(--web-radius-lg); box-shadow: var(--web-shadow);
}
.wb-insight-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
.wb-insight-icon--heart { background: #fdecef; color: #e0566f; }
.wb-insight-icon--trophy { background: #fff2e0; color: var(--web-brand-dark); }
.wb-insight-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--web-text); }
.wb-insight-text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--web-text-soft); }

/* ---------- reviews: compact cards - a small round photo next to the name, the quote under it ---------- */
#switch-reviews-buttons { justify-content: center; column-gap: 8px; }
#switch-reviews-buttons .switch-reviews-button { flex: 0 1 230px; }
.reviews-carousel-wrapper { margin-bottom: 40px; }
#teacher-reviews-carousel .review-card, #student-reviews-carousel .review-card {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "photo name" "text text";
    align-items: center; column-gap: 14px; row-gap: 12px; padding: 20px 22px; margin: 6px 10px 20px; width: auto;
}
.review-card .student-image-wrapper {
    grid-area: photo; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: #fff2e0; border: 2px solid #f3d9a8;
}
.review-card .review-image { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; } /* no alt text over the circle */
/* PC: the photo grows on hover (2x, from the top-left corner into the card, over the name) */
@media (hover: hover) and (pointer: fine) {
    .review-card .student-image-wrapper { position: relative; z-index: 1; transform-origin: left top; cursor: zoom-in; }
    .review-card .student-image-wrapper:hover { transform: scale(2); z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .review-card .student-image-wrapper { transition: transform .2s ease, box-shadow .2s ease; }
}
.review-card .review { display: contents; padding: 0; }
.review-card .review-title { grid-area: name; font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0; }
.review-card .review-description { grid-area: text; position: relative; margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--web-text-soft); }
.review-card .review-description::before {
    content: "\201C"; position: absolute; left: 0; top: -6px; font-size: 34px; line-height: 1; font-weight: 800; color: var(--web-brand);
}
.review-card .review-description p { margin: 0; } /* texts from the admin editor come wrapped in <p>...<br></p> */
.review-card .review-description p > br:last-child { display: none; }
@media (max-width: 576px) {
    #teacher-reviews-carousel .review-card, #student-reviews-carousel .review-card { padding: 16px 16px; margin: 6px 4px 16px; }
    #switch-reviews-buttons .switch-reviews-button { flex: 1 1 0; }
}

/* =====================================================================================================================
   ONE TYPE SCALE for the whole homepage (one font: Overpass; the app previews in the devices keep the app's Montserrat).
   Before: 19 sizes between 12 and 58px (section titles 30 / 42 / 50px, texts 15 - 26px). Every text role uses one of
   these steps; px, because the homepage changes its root font size per breakpoint.
   ===================================================================================================================== */
:root {
    --t-h1: 48px;     /* the main title */
    --t-h2: 38px;     /* section titles */
    --t-h3: 24px;     /* block titles inside a section */
    --t-lead: 20px;   /* the intro sentence under a title */
    --t-card: 18px;   /* card / tile titles, FAQ questions */
    --t-body: 17px;   /* running text */
    --t-small: 15px;  /* card texts, notes */
    --t-label: 13px;  /* small uppercase labels */
}
@media (max-width: 992px) {
    :root { --t-h1: 40px; --t-h2: 32px; --t-h3: 22px; --t-lead: 18px; --t-body: 16px; }
}
@media (max-width: 576px) {
    :root { --t-h1: 32px; --t-h2: 27px; --t-h3: 20px; --t-lead: 17px; --t-card: 17px; --t-body: 16px; --t-small: 15px; --t-label: 12px; }
}

/* titles */
#main-title { font-size: var(--t-h1); line-height: 1.12; }
#main-content h2.orange-title, #main-content .wb-cap-title, #ai-features-article .ai-header h2,
#revolution-in-learning-article-header h2, #how-it-works-article-header h2, #about-us-article header h2, #contact-article header h2 {
    font-size: var(--t-h2); line-height: 1.15; font-weight: 800;
}
#ai-features-article .ai-text h3, #pricing-calculator .pricing-calc-heading, .about-us-title { font-size: var(--t-h3); line-height: 1.25; }

/* the intro sentences under the titles */
#main-description, #revolution-in-learning-article-description, #reviews-article-header, .wb-pkg-subtitle { font-size: var(--t-lead); line-height: 1.5; }

/* card / tile titles */
.news-card-title, .wb-pkg-name, .wb-insight-title, .review-card .review-title, .faq-row-question, .faq-row-question strong {
    font-size: var(--t-card); line-height: 1.3;
}
.faq-row-question strong { font-weight: 700; }
#main-content .wb-cap-name, .wb-access-name, #mode-types .types-text { font-size: var(--t-body); }

/* running text */
#ai-features-article .ai-text p, #ai-features-article .ai-points li, #ai-features-article .ai-stepsNote, #how-it-works-description,
.order-process-card > div, .faq-row-answer, #calc-inputs label, .calc-row-label, .teacher-banner-main,
#contact-info-wrapper, #address-info p, #email-info a, #other-info span {
    font-size: var(--t-body); line-height: 1.6;
}
#calc-result .calc-row--total .calc-row-label, #calc-result .pricing-calc-final { font-size: var(--t-lead); }
#calc-total.calc-total-amount { font-size: 30px; }
.tier-card .tier-card-price { font-size: 48px; }

/* card texts, notes */
.news-card-text, .wb-pkg-desc, .wb-insight-text, .review-card .review-description, .about-us-description,
.pricing-fine-print, #price-country-select .dropdown-item, #contact-form .alert {
    font-size: var(--t-small); line-height: 1.55;
}

/* forms + footer */
#contact-form input, #contact-form #message, #calc-inputs .form-control { font-size: 16px; } /* 16px: no zoom-in on iPhone */
#contact-form-submit-button { font-size: 17px; }
#wocabee-footer { font-size: 14px; }

@media (max-width: 576px) {
    .tier-card .tier-card-price { font-size: 40px; }
    #calc-total.calc-total-amount { font-size: 26px; }
}
/* the last strays onto the scale */
.supported-language-name, .wb-pkg-textbook-note, #pricing-hint, #pricing-hint span, .additional-info-button { font-size: var(--t-small); }
#ai-features-article .ai-step-title { font-size: var(--t-body); }
#news .add-date-text small, .news-card .text-muted { font-size: var(--t-label); }
#ai-features-article .ai-who, #ai-features-article .ai-text .ai-level { font-size: var(--t-label); } /* rem-based before: 8-10px on phones */
.wb-order-ctas .wb-order-cta-trial { font-size: 20px; }
@media (max-width: 575px) { .wb-order-ctas .wb-order-cta-trial { font-size: 18px; } }

/* ---------- the top menu gets slim when the page is scrolled (js/web-redesign.js #main-header.is-compact); fixed with its full
   height reserved as the body padding (.wb-fixed), so it does not move the page ---------- */
#main-header.wb-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 1020; }
#main-header.wb-measure, #main-header.wb-measure * { transition: none !important; }
#app-navbar, #logo, #main-header .open-app-button, #app-navbar .nav-link { transition: padding .25s ease, width .25s ease, margin .25s ease, font-size .25s ease; }
@media (min-width: 992px) {
    #main-header.is-compact #app-navbar { padding-top: 4px; padding-bottom: 4px; }
    #main-header.is-compact #logo { width: 96px; margin-bottom: 0; }
    #main-header.is-compact .open-app-button { padding: 6px 16px; font-size: 15px; }
    #main-header.is-compact #app-navbar .nav-link { padding-top: 4px; padding-bottom: 4px; }
}
/* phones / tablets: once scrolled, the big logo goes away and the menu button moves next to "open the app" - one thin row */
@media (max-width: 991px) {
    #logo-out-menu-wrapper { max-height: 100px; overflow: hidden; transition: max-height .25s ease, opacity .2s ease, padding .25s ease, margin .25s ease; }
    #app-navbar { transition: padding .25s ease; }
    #main-header.is-compact #app-navbar { padding-top: 6px; padding-bottom: 6px; }
    #main-header.is-compact #logo-out-menu-wrapper { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
    #main-header.is-compact #open-app-button-out-menu-wrapper { flex: 1 1 200px; width: auto; min-width: 0; } /* 200px: not into the (hidden) logo row */
    #main-header.is-compact .navbar-toggler { flex: 0 0 auto; width: auto; height: 38px; margin-left: 8px; padding: 4px 10px; }
}

/* ---------- price calculator: from 600 licenses a "contact us" card instead of the price (#calc-500-contact) ---------- */
#calc-500-contact .wb-calc-contact {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--web-radius);
    background: #fff6e6; border: 1px solid #f6d79a; color: #3a2a0c; text-decoration: none;
    font-size: 17px; font-weight: 700; line-height: 1.35;
}
#calc-500-contact .wb-calc-contact-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--web-brand); color: #fff; font-size: 19px;
}
#calc-500-contact .wb-calc-contact-text { flex: 1 1 auto; }
#calc-500-contact .wb-calc-contact-arrow {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--web-brand-dark); border: 1px solid #f6d79a;
}
#calc-500-contact .wb-calc-contact:hover { background: #ffefd2; }
@media (prefers-reduced-motion: no-preference) {
    #calc-500-contact .wb-calc-contact-arrow { transition: transform .2s ease; }
    #calc-500-contact .wb-calc-contact:hover .wb-calc-contact-arrow { transform: translateX(3px); }
}

/* ---------- "this is only a demo" modal (#try-modal) - a soft card with the bee, the trial button + its note ---------- */
#try-modal .modal-dialog { max-width: 460px; }
#try-modal .modal-content { border: 0; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(60, 40, 0, .45); overflow: hidden;
    background: linear-gradient(180deg, #fff6e6 0, #fff 140px); }
#try-modal .modal-body { padding: 26px 28px 20px; text-align: center; }
#try-modal .close { position: absolute; top: 10px; right: 14px; font-size: 28px; opacity: .45; }
#try-modal .close:hover { opacity: .8; }
#try-modal .wb-try-bee { display: block; width: 110px; height: auto; margin: 0 auto 10px; }
#try-modal .wb-try-title { margin: 0 0 20px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--web-text, #2d2a24); }
#try-modal .wb-try-btn { display: block; width: 100%; text-transform: none; letter-spacing: normal; line-height: 1.2; }
#try-modal .wb-order-cta-note { margin-top: 10px; }
#try-modal .wb-try-later { margin-top: 14px; padding: 4px 10px; border: 0; background: none; color: #8a8270; font-size: 14px; font-weight: 600; }
#try-modal .wb-try-later:hover { color: #3b2a12; text-decoration: underline; }
@media (max-width: 575px) {
    #try-modal .modal-body { padding: 22px 18px 16px; }
    #try-modal .wb-try-bee { width: 90px; }
    #try-modal .wb-try-title { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
    #try-modal.show .wb-try-bee { animation: wbTryWave .9s ease-out .15s both; }
    @keyframes wbTryWave { 0% { transform: scale(.8) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.05) rotate(4deg); opacity: 1; } 100% { transform: none; } }
}
