/*
  UI and accessibility pass (4 November 2026). Loaded last on every page, so
  these win over the Webflow export without editing it. Each block names the
  problem it fixes.
*/

/* ---- Header: between 992px and 1279px the five links wrapped onto two
   lines ("About / Us") and the logo ran into "Home". Keep them on one line
   and tighten the gaps until the menu collapses at 991px. */
@media (min-width: 992px) {
  .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  .nav-menu { grid-column-gap: 24px; grid-row-gap: 24px; margin-left: 24px; }
  .nav-button-wrap { grid-column-gap: 10px; grid-row-gap: 10px; }
}

/* ---- Contrast: the hero's small grey line was #8a8a8a on white (3.4:1);
   #6b6b6b passes AA for small text (5.3:1). */
.hero-rating-text { color: #6b6b6b; }

/* ---- Motion: the feature icons flew in from 100px below, straight across
   the card text, and screenshots caught them mid-flight. They fade in place
   now. */
.feature-icon { transform: none !important; }

/* Anyone who has asked their system for less motion gets the content at once,
   with no entrance animations and no smooth-scroll easing. */
@media (prefers-reduced-motion: reduce) {
  [style*="translate3d"], [style*="opacity: 0"], [style*="opacity:0"] {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Product grid: two columns left the third product alone on the left of
   its row. The odd card out is centred under the other two. */
@media (min-width: 992px) {
  .courses-collection-wrapper > .w-dyn-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

/* ---- Product page: a list with one card (the expert) sat on the left under
   a centred heading. A single card is centred and given room to read. */
.values-widget-wrapper:has(> .values-widget:only-child) {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

/* The questions began flush against the grey section above them, because the
   product page sets their top padding to 0. Space them like every other
   section. */
.skill-detail-page .values-section + .faq-section,
.skill-detail-page .mission-vission-section + .faq-section {
  padding-top: var(--section-padding--desktop);
}
@media (max-width: 991px) {
  .skill-detail-page .values-section + .faq-section,
  .skill-detail-page .mission-vission-section + .faq-section { padding-top: var(--section-padding--tab); }
}
@media (max-width: 767px) {
  .skill-detail-page .values-section + .faq-section,
  .skill-detail-page .mission-vission-section + .faq-section { padding-top: var(--section-padding--mobile-l); }
}

/* Sections that used to repeat the product card beside them (the card is
   already the hero image) now run full width: heading and text on the left,
   the points on the right. */
@media (min-width: 992px) {
  .mission-content-block:not(:has(.mission-vission-image-wrap)) .mission-vission-block {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: start;
  }
}

/* ---- Side-by-side: each row now shows the two answers on their own lines,
   labelled, with the skill's answer marked so the difference reads at a
   glance. */
.jwai-compare { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.jwai-compare-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4f4f4;
  text-align: left;
}
.jwai-compare-row.is-skill { background: #eef2ff; box-shadow: inset 3px 0 0 #3665fb; }
.jwai-compare-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}
.jwai-compare-row.is-skill .jwai-compare-label { color: #2448c9; }

/* ---- Footer: the social icons link to the bare facebook.com, instagram.com,
   x.com and linkedin.com home pages, not to any Journey with AI account.
   Hidden until there are real profiles to point at. */
.footer-social-links-wrap { display: none; }

/* ---- Touch targets: on phones several controls were 21 to 34px tall.
   Brought up to the 44px minimum without changing how they look. */
@media (max-width: 991px) {
  .footer-link, .product-breadcrumb a, .w-nav-brand, .footer-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .course-card-button { min-width: 44px; min-height: 44px; }
  .course-title { display: flex; align-items: center; min-height: 44px; }
  .jwai-eye { min-width: 44px; min-height: 44px; }
  .jwai-secondary-link, .product-example-link, .sign-up-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .toc-link { display: block; padding-top: 5px; padding-bottom: 5px; }
}

/* ---- Keyboard: the FAQ questions are now focusable (js/jwai-a11y.js). Show
   where focus is, in the brand blue. */
.faq-question:focus-visible {
  outline: 2px solid #3665fb;
  outline-offset: 2px;
  border-radius: 4px;
}
.faq-question { cursor: pointer; }

/* ---- New images (4 November): the brand-file flow under the product cards
   on Home, and the product objects, which are photos rather than the flat
   card art, so they fill their frame. */
.jwai-figure { margin: 56px auto 0; max-width: 1100px; }
.jwai-figure img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(21,21,21,.35); }
@media (max-width: 767px) { .jwai-figure { margin-top: 32px; } }
.course-thumbnail[src*="/images/products/"], .product-main-image[src*="/images/products/"] { object-fit: cover; }
.mission-vission-image[src*="/images/ui/"] { border-radius: 14px; }
/* the graphics show whole inside the feature cards, on the same dot-grid paper */
.feature-image[src*="/images/ui/"] {
  object-fit: contain;
  background-color: #F9F9F9;
  background-image: radial-gradient(circle, rgba(54, 101, 251, 0.30) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
}

/* ---- Selling elements (4 November) ----------------------------------- */

/* who each product is for, above its name */
.jwai-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #eef2ff;
  color: #2448c9;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-info .jwai-eyebrow, .course-card-head-block .jwai-eyebrow { align-self: flex-start; width: auto; max-width: max-content; }
.product-info .jwai-eyebrow { margin-bottom: 12px; }

/* "Not a template. ..." under the lead */
.jwai-contrast {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid #3665fb;
  font-weight: 600;
  color: #151515;
}

/* three plain facts under the buttons */
.jwai-chips { list-style: none; margin: 18px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jwai-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: #f4f4f4; font-size: 14px; line-height: 1.4; color: #333;
}
.jwai-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3665fb; flex: none; }

/* the self-test */
.skill-detail-page .jwai-callout-section, .jwai-callout-section { padding: 56px 0; }
.jwai-callout {
  max-width: 820px; margin: 0 auto; padding: 28px 32px;
  border-radius: 14px; background: #fff4c2;
  box-shadow: 0 18px 36px -22px rgba(21,21,21,.35);
  transform: rotate(-.4deg);
}
.jwai-callout-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b5a12; margin-bottom: 8px; }
.jwai-callout-text { margin: 0; font-size: 22px; line-height: 1.45; color: #151515; }
@media (max-width: 767px) { .jwai-callout { padding: 22px 20px; } .jwai-callout-text { font-size: 18px; } }

/* the closing line and the last buy button */
.skill-detail-page .jwai-closing-section, .jwai-closing-section { padding: 88px 0 72px; }
.jwai-closing { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.jwai-closing .jwai-closing-line { margin: 0; font-family: "DM Serif Text", serif; font-style: italic; font-size: 34px; line-height: 1.25; color: #151515; }
.jwai-closing-buy { display: flex; align-items: center; gap: 16px; }
.jwai-closing-price { font-size: 24px; font-weight: 600; }
@media (max-width: 767px) { .jwai-closing .jwai-closing-line { font-size: 26px; } .jwai-closing-section { padding: 48px 0; } }

/* the buy bar pinned to the bottom */
.jwai-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(255,255,255,.97);
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -10px 30px -18px rgba(21,21,21,.35);
}
.jwai-sticky[hidden] { display: none; }
.jwai-sticky-inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }
.jwai-sticky-price { font-size: 20px; font-weight: 700; }
.jwai-sticky-name { font-weight: 600; }
.jwai-sticky-eyebrow { color: #555; font-size: 15px; }
.jwai-sticky-button.product-buy { margin-left: auto; min-height: 44px; width: auto; padding-left: 22px; padding-right: 22px; }
body.has-sticky-buy { padding-bottom: 72px; }
@media (max-width: 767px) {
  .jwai-sticky-inner { padding: 10px 16px; gap: 10px; }
  .jwai-sticky-eyebrow { display: none; }
  .jwai-sticky-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) { .jwai-sticky:not([hidden]) { animation: jwai-up .25s ease-out; } }
@keyframes jwai-up { from { transform: translateY(100%); } to { transform: none; } }

/* the founder: Sahil's portrait in the expert section */
[data-section="expert"] .values-widget-icon-wrap { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #F9F9F9; box-shadow: inset 0 0 0 2px #e4e8f8; }
[data-section="expert"] .values-widget-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
[data-section="expert"] .values-widget-icon-wrap .value-image,
[data-section="expert"] .values-widget-icon-wrap img { width: 96px !important; height: 96px !important; max-width: none; object-fit: cover; }
[data-section="expert"] .values-widget-icon-wrap { padding: 0; display: block; }

/* "Verify: brand-professor.com" under the founder lines */
.jwai-verify { margin-top: 14px; font-size: 15px; color: #555; }
.jwai-verify a { color: #3665fb; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* the "What's inside" stacks are taller than the square stage: shown whole,
   on the colour of the photo's own backdrop */
.product-main-image[src*="/products/inside-"], .product-thumb img[src*="/products/inside-"] { object-fit: contain !important; background: #efede8; }

/* ---- The book on the home page (4 November) */
.jwai-book-section { padding: 100px 0; background: #fff; }
.jwai-book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: center; max-width: 1080px; margin: 0 auto; }
.jwai-book-cover { display: block; transform: rotate(-3deg); }
.jwai-book-cover img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 50px -26px rgba(21,21,21,.55); }
.jwai-book-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.jwai-book-text .jwai-eyebrow { margin-bottom: 0; }
.jwai-book-facts { margin: 0; font-weight: 600; color: #333; }
.jwai-book-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 6px; }
.jwai-book-buy .product-buy { width: auto; padding-left: 26px; padding-right: 26px; min-height: 48px; }
@media (max-width: 991px) { .jwai-book { grid-template-columns: minmax(0, 1fr); gap: 40px; } .jwai-book-cover { max-width: 300px; margin: 0 auto; } .jwai-book-section { padding: 72px 0; } }

/* ---- What they wrote back (4 November) */
.jwai-quotes-section { padding: 90px 0; }
.jwai-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.jwai-quote { margin: 0; padding: 30px 30px 26px; background: #fff; border-radius: 14px; box-shadow: 0 2px 0 rgba(21,21,21,.04), 0 18px 36px -24px rgba(21,21,21,.3); display: flex; flex-direction: column; gap: 18px; }
.jwai-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 18px; line-height: 1.5; color: #151515; }
.jwai-quote blockquote::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: #3665fb; margin-bottom: 16px; }
.jwai-quote figcaption { margin-top: auto; font-size: 14px; font-weight: 600; color: #555; }
.jwai-quotes-note { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 14px; color: #666; }
@media (max-width: 991px) { .jwai-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .jwai-quotes { grid-template-columns: minmax(0, 1fr); } .jwai-quotes-section { padding: 60px 0; } }
.jwai-quotes:has(> .jwai-quote:only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* the featured quote under the home hero */
.jwai-featured-quote-section { padding: 24px 0 8px; }
.jwai-featured-quote { margin: 0 auto; max-width: 900px; padding: 44px 52px; border-radius: 18px; background: #eef2ff; text-align: left; }
.jwai-featured-quote blockquote { margin: 0; padding: 0; border: 0; font-family: "DM Serif Text", serif; font-size: 34px; line-height: 1.3; color: #151515; }
.jwai-featured-quote figcaption { margin-top: 20px; font-size: 16px; font-weight: 600; color: #2448c9; }
.jwai-featured-quote figcaption span { font-weight: 400; color: #555; }
@media (max-width: 767px) { .jwai-featured-quote { padding: 28px 24px; } .jwai-featured-quote blockquote { font-size: 24px; } }

/* ---- Launch prices: the regular price struck through beside the price */
.jwai-was { margin-left: 8px; color: #8a8a8a; font-weight: 500; font-size: .85em; text-decoration-thickness: 1.5px; }
.course-price .jwai-was { align-self: center; font-size: 15px; }
.jwai-launch-tag { margin-left: 12px; padding: 3px 10px; border-radius: 99px; background: #fff4c2; color: #6b5a12; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; align-self: center; }
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }

/* Buy now (4 November 2026): the button is a link to Stripe now */
a.product-buy { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.product-buy:hover, a.product-buy:focus-visible { color: #fff; text-decoration: none; }
.jwai-buy-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #6b6b6b; }
.jwai-closing .jwai-buy-note { text-align: center; }
.jwai-checkout-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff4c2; color: #4d410c; font-size: 14px; }
.jwai-order-download { margin: 8px 0; }
.jwai-order-note { margin-top: 14px; font-size: 14px; color: #6b6b6b; }

/* the buy popup (js/jwai-buy.js) */
.jwai-buy-locked, .jwai-buy-locked body { overflow: hidden; }
.jwai-buy { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 16px; animation: jwai-buy-in .18s ease-out; }
.jwai-buy.is-closing { animation: jwai-buy-out .18s ease-in forwards; }
@keyframes jwai-buy-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes jwai-buy-out { to { opacity: 0; } }
.jwai-buy-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 30, .55); }
.jwai-buy-card { position: relative; width: 100%; max-width: 940px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.jwai-buy-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 1px solid #e3e3e3; border-radius: 50%; background: #fff; cursor: pointer; }
.jwai-buy-close::before, .jwai-buy-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: #151515; }
.jwai-buy-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.jwai-buy-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.jwai-buy-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.jwai-buy-what { padding: 40px 36px; }
.jwai-buy-order { padding: 40px 36px; background: #f5f7ff; border-left: 1px solid #e6eaf8; }
.jwai-buy-eyebrow, .jwai-buy-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3665fb; }
.jwai-buy-name { margin: 10px 0 12px; font-family: "DM Serif Text", serif; font-size: 32px; line-height: 1.15; color: #151515; }
.jwai-buy-summary { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #444; }
.jwai-buy-points, .jwai-buy-ticks { margin: 0; padding: 0; list-style: none; }
.jwai-buy-points li, .jwai-buy-ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #333; }
.jwai-buy-points li::before, .jwai-buy-ticks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #3665fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.jwai-buy-ticks { margin-top: 18px; }
.jwai-buy-ticks li { font-size: 14px; color: #555; }
.jwai-buy-line, .jwai-buy-total { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #dfe4f5; font-size: 15px; color: #333; }
.jwai-buy-label + .jwai-buy-line { margin-top: 10px; border-top: 1px solid #dfe4f5; }
.jwai-buy-line.is-was { color: #777; }
.jwai-buy-total { border-bottom: 0; align-items: baseline; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.jwai-buy-total strong { font-family: "DM Serif Text", serif; font-size: 34px; letter-spacing: 0; text-transform: none; color: #151515; }
.jwai-buy-continue { width: 100%; margin-top: 6px; }
.jwai-buy-continue.is-working { opacity: .7; cursor: progress; }
.jwai-buy-secure { margin: 14px 0 0; font-size: 13px; color: #6b6b6b; }
.jwai-buy-back { margin: 20px 24px 8px; padding: 8px 4px; border: 0; background: none; font-size: 15px; font-weight: 600; color: #2448c9; cursor: pointer; }
.jwai-buy-mount { padding: 0 8px 16px; min-height: 420px; }
.jwai-buy-error { margin: 0 36px 24px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #8a1f1f; font-size: 14px; }
@media (max-width: 767px) {
  .jwai-buy { padding: 0; align-items: flex-end; }
  .jwai-buy-card { max-height: 94vh; border-radius: 18px 18px 0 0; }
  .jwai-buy-grid { grid-template-columns: 1fr; }
  .jwai-buy-what, .jwai-buy-order { padding: 28px 20px; }
  .jwai-buy-what { padding-right: 64px; }
  .jwai-buy-order { border-left: 0; border-top: 1px solid #e6eaf8; }
  .jwai-buy-name { font-size: 26px; }
  .jwai-buy-error { margin: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .jwai-buy, .jwai-buy.is-closing { animation: none; } }

/* Home hero side images (4 November 2026): the template held them to 12% of
   the screen, so the cards read tiny and sat on the screen edge. They now take
   the space either side of the 830px heading, with a gap from the edge. */
@media (min-width: 992px) {
  .hero-section .hero-image-01,
  .hero-section .hero-image-02 {
    width: clamp(150px, calc((100vw - 880px) / 2 - 28px), 380px);
    max-width: none;
    height: auto;
  }
  .hero-section .hero-image-01 { inset: 18% auto auto 20px; }
  .hero-section .hero-image-02 { inset: 20% 20px auto auto; }
}
