/* ==========================================================================
   POLISH LAYER (2026-11-11)
   Loaded after every other stylesheet on every page, so it refines the
   base styles without touching them. Each block is tagged [P#]:
   P1 tokens, P2 type, P3 line length, P4 rhythm, P5 backgrounds, P6 cards,
   P7 radius, P8 buttons, P9 details, P10 articles, P12 blog/quiz index,
   P13 quiz pages, P14 pricing, P15-P16 typographic replacements for icons,
   P17 reviews/FAQ/tap flash, P18 review dots + swipe, P19 hero blob.
   ========================================================================== */

/* [P1] Design tokens ------------------------------------------------------ */
:root {
    /* Colour: warm-tinted neutrals, one deeper accent for filled buttons */
    --text-light: #66727F;                 /* was #7F8C9A, 3.2:1 on cream -> 4.5:1 */
    --text: var(--text-medium);            /* was undefined, used by 6 rules */
    --border-light: #E9E4DD;               /* warm hairline instead of grey #E8E8E8 */
    --bg-sand: #F6F2EC;                    /* second warm surface for alternation */

    /* Spacing: 4/8 scale + fluid section & card rhythm */
    --section-y: clamp(3.5rem, 2.4rem + 4.4vw, 6rem);       /* 56 -> 96 */
    --section-head-gap: clamp(2.5rem, 1.9rem + 2.4vw, 4rem); /* 40 -> 64 */
    --card-pad: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);       /* 24 -> 40 */
    --card-pad-sm: clamp(1.25rem, 1rem + 1vw, 1.75rem);      /* 20 -> 28 */
    --grid-gap: clamp(1rem, 0.7rem + 1.2vw, 2rem);           /* 16 -> 32 */

    /* Type scale (~1.2 mobile -> ~1.25 desktop), body 17px */
    --fs-label: 0.8125rem;                                   /* 13 */
    --fs-small: 0.9375rem;                                   /* 15 */
    --fs-body: 1.0625rem;                                    /* 17 */
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);     /* 17 -> 20 */
    --fs-h4: 1.25rem;                                        /* 20 (Inter, card titles) */
    --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);       /* 24 -> 30 (serif) */
    --fs-h2: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);           /* 32 -> 44 */
    --fs-h1: clamp(2.5rem, 1.8rem + 2.9vw, 4rem);            /* 40 -> 64 */
    --lh-body: 1.65;
    --measure: 66ch;

    /* Shape */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* Shadows tinted with the brand blue (hsl 205), layered: contact + ambient */
    --shadow-sm: 0 1px 2px hsl(205 40% 25% / 0.05), 0 4px 14px hsl(205 40% 25% / 0.05);
    --shadow-md: 0 1px 2px hsl(205 40% 25% / 0.04), 0 10px 28px hsl(205 40% 25% / 0.08);
    --shadow-lg: 0 2px 4px hsl(205 40% 25% / 0.05), 0 22px 54px hsl(205 40% 25% / 0.13);

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
                  border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out),
                  transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out),
                  left 0.3s var(--ease-out), width 0.25s var(--ease-out);
}

/* [P2] Typography: one body size, consistent line-height, nicer wrapping -- */
body { line-height: var(--lh-body); }
p { line-height: var(--lh-body); text-wrap: pretty; }
h1, h2, h3, .section-title, .hero-title, .cta-heading, .featured-subtitle {
    text-wrap: balance;
    letter-spacing: -0.01em;
}
h1, .hero-title { line-height: 1.08; letter-spacing: -0.02em; }
h2, .section-title { line-height: 1.15; }
h3 { line-height: 1.25; }

.hero-title { font-size: var(--fs-h1); }
.section-title { font-size: var(--fs-h2); }
.section-subtitle { font-size: var(--fs-lead); line-height: 1.6; max-width: 40rem; }
.hero-subtitle { font-size: var(--fs-lead); max-width: 34rem; }
@media (max-width: 968px) { .hero-subtitle { margin-inline: auto; } }

/* Serif h3s share one size; Inter card titles share another */
.about-name, .service-main h3, .publication-content h3, .contact-cta h3,
.cap-content h3, .featured-subtitle, .cta-section .cta-heading {
    font-size: var(--fs-h3);
}
.about-name { margin-bottom: 0.25rem; }
.benefit-item h3, .step h3, .target-group h3, .technical-info h3, .common-issues h3 {
    font-size: var(--fs-h4);
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

/* Body copy: 17px everywhere on the homepage (was a mix of 15/16/17/18) */
.about-description p, .publication-content p, .cap-content p, .benefit-item p,
.step p, .target-group p, .technical-info p, .service-description, .lead-text,
.faq-answer p, .contact-cta p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}
.service-description, .lead-text { font-size: var(--fs-lead); }

/* Uppercase labels: one recipe */
.credential-card .credential-label, .service-eyebrow, .service-fact dt {
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
    font-weight: 700;
}
.service-fact dt { color: var(--text-light); }

/* [P3] Line length: cap prose at ~66 characters ------------------------- */
.about-description p, .publication-content p, .cap-content p,
.technical-info-content p { max-width: var(--measure); }
.service-description, .lead-text, .cta-section p, .contact-cta p {
    max-width: 42rem;
    margin-inline: auto;
}
.testimonial-text { max-width: 40rem; margin-inline: auto; }

/* [P4] Vertical rhythm: fluid section padding, smaller header gap ------- */
.about, .services, .why-online, .how-it-works, .who-for, .faq, .featured,
.contact { padding-block: var(--section-y); }
.testimonials { padding-block: calc(var(--section-y) * 0.75); }
.section-header { margin-bottom: var(--section-head-gap); }
.section-title { margin-bottom: 1.75rem; }        /* clears the 4px underline */
.section-title::after { bottom: -12px; width: 56px; height: 3px; }
.services-grid, .service-main { margin-bottom: var(--section-head-gap); }
.process-steps { margin-top: 0; margin-bottom: var(--section-head-gap); gap: var(--grid-gap); }
.benefits-grid { margin-top: var(--section-head-gap); gap: var(--grid-gap); }
.lead-text { margin-bottom: 0; }
.cap-membership { margin: 0 0 var(--section-head-gap); }
.featured-subtitle { margin: 0 0 var(--space-lg); }
.featured-links { margin-top: 0; gap: var(--grid-gap); }

@media (max-width: 968px) {
    .hero { padding-bottom: var(--section-y); }
}

/* [P5] Section backgrounds: strict white / warm alternation ------------- */
/* Before: two whites in a row (FAQ -> References) and cool grey-blue tints
   (#f8f9fb, #F0F7FA) mixed with the warm cream. */
.why-online   { background: var(--bg-light); }
.how-it-works { background: var(--bg-cream); }
.who-for      { background: var(--bg-light); }
.faq          { background: var(--bg-cream); }
.featured     { background: var(--bg-light); }
.testimonials { background: var(--bg-cream); }
.contact      { background: var(--bg-light); }
.technical-info { background: var(--bg-light); box-shadow: var(--shadow-sm); }
.cap-membership, .featured-link { background: var(--bg-cream); }

/* [P6] Cards: one padding, one border, tinted layered shadows ----------- */
.credential-card, .benefit-item, .target-group, .common-issues, .testimonial-content,
.contact-compact, .service-main, .faq-item, .featured-link,
.blog-card, .pricing-card, .pricing-info-item {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.faq-item { border-left: 4px solid var(--primary); }
.benefit-item, .target-group, .common-issues, .credential-card, .technical-info {
    padding: var(--card-pad);
}
.step { padding: var(--card-pad-sm) 0.75rem; }
.service-main { padding: var(--card-pad) clamp(1.25rem, 0.5rem + 4vw, 4rem); box-shadow: var(--shadow-md); }
.publication-feature { padding: var(--card-pad); box-shadow: var(--shadow-md); }
.testimonial-content { padding: var(--card-pad); box-shadow: var(--shadow-md); }
.contact-compact { padding: var(--card-pad); box-shadow: var(--shadow-md); }
.cap-membership { padding: var(--card-pad); border: 1px solid var(--border-light); }
.featured-link { border-width: 1px; padding: var(--card-pad-sm); }
.cta-section { padding: calc(var(--card-pad) * 1.6) var(--card-pad); box-shadow: var(--shadow-lg); }

/* Benefits: 2x2 on desktop instead of four 130px-wide text columns */
@media (min-width: 769px) {
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Who-for cards: 2x2 on desktop too (was 4 x 196px columns) */
@media (min-width: 1100px) {
    .target-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
    .target-group { padding: var(--card-pad); }
}
/* On-palette icon & step tints (were off-brand #4A90E2 blue) */
.step-number {
    width: 56px; height: 56px; font-size: 1.5rem; line-height: 1;
    box-shadow: 0 6px 16px hsl(205 46% 33% / 0.22);
}

/* [P7] Radius: three sizes + pill (was 10 different values) -------------- */
.credential-card, .benefit-item, .target-group, .common-issues, .technical-info,
.faq-item, .featured-link, .blog-card, .pricing-info-item,
.service-facts, .contact-item, .article-summary, .article-safety-note,
.article-callout, .related-resource, .article-author-box, .related-articles,
.blog-post-image, .quiz-intro-image { border-radius: var(--r-md); }
.service-main, .publication-feature, .cta-section, .cap-membership,
.testimonial-content, .contact-compact, .contact-cta,
.pricing-card, .pricing-information, .blog-post-cta { border-radius: var(--r-lg); }
.office-gallery-image, .office-gallery-image--main, .highlighted-text,
.related-articles-list a, .article-examples p, .quiz-overview-note,
.publication-cover img, .cap-logo-link { border-radius: var(--r-sm); }
.btn, .category-btn, .blog-category-tag, .blog-post-category, .quiz-card-meta-item { border-radius: var(--r-pill); }

/* [P8] Buttons: two sizes, accessible accent, calmer motion ------------- */
.btn { padding: 0.8125rem 1.75rem; font-size: 1rem; line-height: 1.375; letter-spacing: 0.005em; }
.btn-hero, .btn-large { padding: 1rem 2.125rem; font-size: 1.0625rem; }
/* Coral #E8927C kept by owner's choice (white text is 2.4:1; dark text would be 4.6:1). */
@media (hover: hover) {
    .btn-primary:hover, .btn-large:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px hsl(12 70% 60% / 0.3);
    }
    .btn-hero:hover { transform: translateY(-1px); box-shadow: 0 8px 20px hsl(205 46% 33% / 0.28); }
    .featured-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.btn:active { transform: translateY(0); }
:where(a, button, .btn):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* [P9] Highlight box & small details ------------------------------------ */
.highlighted-text { background: var(--bg-cream); border-left-width: 3px; padding: 1.25rem 1.5rem; }
.highlighted-text::before { display: none; }
.service-features-main li::before, .service-features li::before { font-size: 1rem; top: 0.55em; line-height: 1; }
.faq-question { padding: 1.5rem clamp(1.25rem, 0.8rem + 1.6vw, 2rem); line-height: 1.35; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.faq-answer { padding: 0 clamp(1.25rem, 0.8rem + 1.6vw, 2rem) 1.5rem; }
.header { box-shadow: 0 1px 0 var(--border-light), 0 6px 20px hsl(205 40% 25% / 0.04); }

/* [P10] Blog article: readable measure & size ---------------------------- */
.blog-post .container { max-width: 52rem; }
.blog-post-content { padding: var(--card-pad); }
@media (max-width: 768px) { .blog-post-content { padding: var(--space-md) var(--space-xs); } }
.blog-post-content p, .blog-post-content li {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);   /* 17 -> 18, li matched to p */
    line-height: 1.7;
}
.blog-post-content > * { max-width: 68ch; }
.blog-post-content h2 { font-size: var(--fs-h3); line-height: 1.2; margin-top: 2.5rem; }
.blog-post-content h3 { font-size: var(--fs-h4); margin-top: 1.75rem; }
.article-summary h2, .article-author-box h2, .related-articles h2 { font-size: 1.375rem; margin-top: 0; }

/* [P12] Blog index + quiz overview (blog.html, kviz.html) ---------------- */
.blog-hero-title { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
.blog-hero-subtitle { font-size: var(--fs-lead); line-height: 1.6; max-width: 38rem; }
.blog-hero { padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.blog-section { padding: clamp(2rem, 1.6rem + 1.6vw, 3rem) 0 var(--section-y); }
.blog-categories { gap: 0.5rem; margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); }
.category-btn { border-width: 1px; padding: 0.625rem 1.25rem; min-height: 44px; font-size: var(--fs-small); }
@media (hover: hover) { .category-btn:hover { transform: none; } }
/* 3 columns for articles, 2 for the 4 quizzes (was 4 narrow columns) */
@media (min-width: 1100px) {
    #blogGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
    #quizGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
}
.blog-grid { gap: var(--grid-gap); }
.blog-card-content { padding: var(--card-pad-sm); }
.blog-date { font-size: var(--fs-label); letter-spacing: 0.02em; color: var(--text-light); margin-bottom: 0.375rem; }
.blog-card-title { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem); line-height: 1.25; margin-bottom: 0.625rem; text-wrap: balance; }
.blog-card-excerpt { font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }
.blog-card-image { background: var(--bg-sand); }
@media (hover: hover) {
    .blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .blog-card:hover .blog-card-image img { transform: scale(1.03); }
    .blog-read-more:hover { transform: translateX(3px); }
}
.quiz-card-meta-item { font-size: var(--fs-label); background: var(--bg-sand); }
.quiz-overview-note { padding: var(--card-pad-sm); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.quiz-overview-note p, .quiz-overview-list { font-size: 1rem; }
.blog-cta { padding: var(--section-y) 0; }
.blog-cta h2 { font-size: var(--fs-h2); line-height: 1.15; text-wrap: balance; }
.blog-cta p { font-size: var(--fs-lead); max-width: 38rem; margin-inline: auto; margin-bottom: 2rem; }

/* [P13] Quiz pages: intro, questions, results ------------------------------ */
.quiz-intro { padding-bottom: var(--section-y); }
.quiz-intro-title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.quiz-intro-subtitle { font-size: var(--fs-lead); text-wrap: balance; }
.quiz-intro-image { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (max-width: 768px) { .quiz-intro-image { border-radius: var(--r-md); } }
.quiz-intro-text { max-width: var(--measure); margin-inline: auto; }
.quiz-intro-text p { font-size: var(--fs-body); line-height: var(--lh-body); }
.quiz-info-box { border-width: 1px; }
.quiz-start-btn { font-size: 1.0625rem; padding: 1rem 2.5rem; }

/* Bug fix: after "Začít test" the intro hides and the quiz starts at the very
   top, so on phones the progress bar sat under the 89 px fixed header. */
.quiz-section, .quiz-results-section {
    padding-top: calc(89px + clamp(1rem, 0.6rem + 1.6vw, 2.5rem));
    padding-bottom: var(--section-y);
}
.quiz-progress-wrapper { box-shadow: none; }
.quiz-progress-text, .quiz-progress-percent { font-size: var(--fs-small); font-weight: 600; color: var(--text-medium); }
.quiz-progress-bar { height: 8px; background: #EAE5DE; box-shadow: none; border-radius: var(--r-pill); }
.quiz-progress-fill { background: var(--primary); box-shadow: none; border-radius: var(--r-pill); }
@media (max-width: 768px) {
    .quiz-progress-wrapper { border: 1px solid var(--border-light); border-radius: var(--r-md); }
}
.quiz-card { padding: var(--card-pad); border: 1px solid var(--border-light); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.quiz-question { line-height: 1.25; text-wrap: balance; }
.quiz-options { gap: 0.625rem; }
.quiz-option { border-width: 1px; border-radius: var(--r-sm); padding: 0.875rem 1rem; min-height: 52px; }
.quiz-option.selected { box-shadow: inset 0 0 0 1px var(--primary); }   /* 2px look without layout shift */
@media (hover: hover) { .quiz-option:hover { transform: none; border-color: var(--primary-light); } }
.quiz-option-label { font-size: 1rem; line-height: 1.4; }

.quiz-results-card { padding: calc(var(--card-pad) * 1.4) var(--card-pad); border: 1px solid var(--border-light); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.quiz-results-header { border-bottom-width: 1px; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.quiz-results-title { line-height: 1.15; text-wrap: balance; }
.quiz-results-description { text-align: left; font-size: var(--fs-body); line-height: var(--lh-body); max-width: var(--measure); margin-inline: auto; }
.quiz-results-recommendations { padding: var(--card-pad-sm); border-radius: var(--r-md); }
.quiz-results-recommendations h3 { font-size: var(--fs-h4); line-height: 1.3; }
.quiz-results-recommendations li { padding-block: 0.5rem; font-size: 1rem; }
.quiz-related-article { background: var(--bg-cream); border: 1px solid var(--border-light); border-radius: var(--r-md); padding: var(--card-pad-sm); }
.quiz-result-disclaimer { border-radius: var(--r-sm); font-size: var(--fs-small); }
.quiz-social-share { border-top-width: 1px; }
.share-btn { border-width: 1px; }
.quiz-crisis-help { border-radius: var(--r-md); }

/* Result colours: set directly in the quiz scripts (muted sage / blue / ochre / rose). */

/* [P14] Pricing (cenik.html) ----------------------------------------------- */
.pricing-hero { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.pricing-intro { font-size: var(--fs-lead); line-height: 1.6; }
.pricing-main { padding-bottom: var(--section-y); }
.pricing-grid { gap: var(--grid-gap); }
.pricing-card { padding: var(--card-pad); box-shadow: var(--shadow-md); }
.pricing-card-label { font-size: var(--fs-label); letter-spacing: 0.1em; }
.pricing-facts li { font-size: 1rem; }
.pricing-information { padding: var(--card-pad); }
.pricing-info-grid { gap: var(--grid-gap); }
.pricing-info-item { padding: var(--card-pad-sm); border: 1px solid var(--border-light); box-shadow: none; }
.pricing-information > h2, .pricing-first-session h2 { font-size: var(--fs-h3); line-height: 1.2; }
.pricing-first-session p { max-width: var(--measure); margin-inline: auto; }

/* [P15] Icons replaced by typography: benefit cards, contact, hero stats -- */
/* A2: no pictograms in the benefit cards; the short blue->coral line the
   credential cards already use sits above each title. Left-aligned. */
.benefit-item { text-align: left; }
.benefit-item::before {
    content: ''; display: block; width: 40px; height: 3px; margin-bottom: 1rem;
    border-radius: 999px; background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* B2: contact as labelled rows, no icons, hairlines between */
.contact-info-compact { gap: 0; margin-bottom: 0.5rem; }
.contact-item-compact { display: block; padding: 1rem 0; }
.contact-item-compact + .contact-item-compact { border-top: 1px solid var(--border-light); }
.contact-compact .contact-details { display: block; }
.contact-compact .contact-label {
    display: block; margin-bottom: 0.25rem;
    font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-light); line-height: 1.3;
}
.contact-item-compact a { font-size: var(--fs-body); font-weight: 500; color: var(--primary); line-height: 1.4; }
.contact-booking { border-top: 0; margin-top: 0.5rem; }

/* C2: hero stats as one quiet line */
.hero-stats { display: block; }
.hero-stats-line { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-medium); }
.hero-stats-line strong { color: var(--primary); font-weight: 700; }
.stats-dot { color: var(--accent); margin: 0 0.625rem; font-weight: 700; }

/* ==================================================================
   [P16] Quiz label, quiz info line, booking labels, empty state, list dots
   ================================================================== */
/* D1 quiz result: symbol -> small "VÁŠ VÝSLEDEK" label */
.quiz-results-label {
    margin: 0 0 0.75rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; line-height: 1.3; color: var(--text-light);
}
/* E1 quiz start: pill with clipboard icon -> one quiet line */
.quiz-info-boxes { margin: var(--space-lg, 1.5rem) 0; }
.quiz-info-box { background: none; border: 0; padding: 0; border-radius: 0;
    font-size: var(--fs-small); font-weight: 400; color: var(--text-medium); }
.quiz-info-box strong { color: var(--primary); font-weight: 700; }
/* G2 empty blog category: no emoji, add a way back */
.blog-empty { padding: var(--section-head-gap) var(--space-sm, 1rem); }
.blog-empty h3 { font-size: var(--fs-h3); text-wrap: balance; }
.blog-empty p { font-size: var(--fs-body); }
.blog-empty-link { display: inline-block; margin-top: 1rem; padding: 0.5rem 0.25rem; min-height: 44px;
    border: 0; background: none; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; }
/* H1 list ticks -> small coral dot */
.service-features li::before, .service-features-main li::before, .technical-info li::before,
.common-issues li::before, .quiz-overview-list li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    font-size: inherit; line-height: inherit; top: calc(0.75em - 3px); left: 0.25rem;
}
.service-features-main li::before { top: calc(0.5rem + 0.75em - 3px); }   /* these li have 8 px top padding */

/* ==================================================================
   [P17] Reviews gap, FAQ motion, tap flash
   ================================================================== */
/* Reviews: all cards share one grid cell, so the track is as tall
   as the longest review, every card fills it, the text sits centred. No
   gap under short reviews, and the page below never jumps when the review changes. */
.testimonials-track { display: grid; min-height: 0; }
.testimonial-card, .testimonial-card.active { position: relative; grid-area: 1 / 1; display: flex; }
.testimonial-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.testimonial-content > * { width: 100%; }   /* auto side margins would otherwise shrink the text in a flex column */
.testimonials-carousel { padding-bottom: 0; }
.carousel-dots { margin-top: var(--space-lg, 1.5rem); }

/* FAQ: 220 ms open/close instead of an instant jump. The answer stays out of
   the accessibility tree while closed (visibility: hidden). */
.faq-item { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 220ms var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.faq-item.is-open { grid-template-rows: auto 1fr; }
.faq-answer, .faq-answer[hidden] { display: block; min-height: 0; overflow: hidden; padding-bottom: 0; }
.faq-answer > :last-child { padding-bottom: 1.5rem; }
.faq-answer[hidden] { visibility: hidden; opacity: 0; transition: opacity 150ms ease, visibility 0s linear 220ms; }
.faq-item.is-open .faq-answer { opacity: 1; transition: opacity 200ms ease 60ms; }
.faq-question::after, .faq-question[aria-expanded="true"]::after {
    background: linear-gradient(currentColor, currentColor) center no-repeat,
                linear-gradient(currentColor, currentColor) center no-repeat;
    background-size: 0.75rem 2px, 2px 0.75rem; transition: background-size 220ms var(--ease-out); }
.faq-question[aria-expanded="true"]::after { background-size: 0.75rem 2px, 2px 0; }   /* + shrinks into − */
@media (prefers-reduced-motion: reduce) {
    .faq-item, .faq-answer, .faq-answer[hidden], .faq-question::after { transition: none; }
}

/* Tap flash: Android paints a 40 % light-blue box over any tapped link or
   button (that was the "selected" blue bar on FAQ questions). Remove it
   everywhere and give the FAQ a quiet pressed state instead. */
a, button, [role="button"], label, summary { -webkit-tap-highlight-color: transparent; }
.faq-question:active { background: hsl(205 40% 40% / .05); }

/* ==================================================================
   [P18] Review controls: no arrows. Six quiet dots, each a 44 × 44 px tap
   target (Apple HIG / WCAG 2.5.5) while drawn at 7 px. Swipe and
   stop-on-interaction are in js/script.js.
   ================================================================== */
.carousel-dots, .carousel-dots[class] { display: flex; justify-content: center; gap: 0; width: auto; max-width: none; padding: 0;
    margin-top: var(--space-md, 1rem); }
.carousel-indicators { gap: 0; }
.carousel-dot, .carousel-dot.active { width: 44px; height: 44px; }
.carousel-dot::before, .carousel-dot.active::before { content: ''; width: 7px; height: 7px; border: 0; border-radius: 999px;
    background: #7E8E9C;   /* 3.2 : 1 on cream (WCAG 1.4.11 needs 3 : 1) */
    transition: width 220ms var(--ease-out), background-color 220ms ease; }
.carousel-dot.active::before { width: 20px; background: var(--primary); }
.carousel-dot:hover::before { background: var(--primary); }
.carousel-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: -8px; border-radius: 999px; }
.testimonials-track { touch-action: pan-y; }   /* horizontal swipes go to the carousel, vertical ones still scroll */

/* ==================================================================
   [P19] Hero blob loops on phones too (was 2 rounds), but pauses while the
   portrait is off-screen (js/script.js adds .is-offscreen) so it doesn't
   redraw for nothing. "Reduce motion" still gets a still shape.
   ================================================================== */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .blob-shape { animation: blobMorph 8s ease-in-out infinite; }
}
.blob-shape.is-offscreen { animation-play-state: paused; }

/* ==================================================================
   [P20] Anchor jumps land below the fixed header (89 px), matching the
   100 px offset the in-page smooth scroll in js/script.js uses.
   ================================================================== */
main section[id], main [id].section { scroll-margin-top: 100px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn, .featured-link { transition: none; }
}
