/* =====================================================
   home.css — Homepage Section Styles
   ===================================================== */

/* =====================
   1. HERO — Full-bleed editorial layout
   ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background-color: #FAF7F3;
  isolation: isolate;
}

/* Full-bleed background illustration */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Cream wash on the left for headline legibility — fades to clear by the
   middle of the canvas so the illustration's subject reads cleanly */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 243, 1)    0%,
      rgba(250, 247, 243, 1)    25%,
      rgba(250, 247, 243, 0.92) 40%,
      rgba(250, 247, 243, 0.55) 55%,
      rgba(250, 247, 243, 0.10) 68%,
      rgba(250, 247, 243, 0)    78%
    ),
    linear-gradient(
      180deg,
      rgba(250, 247, 243, 0.35) 0%,
      rgba(250, 247, 243, 0)    18%,
      rgba(250, 247, 243, 0)    82%,
      rgba(250, 247, 243, 0.20) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 5rem;
  padding-inline: var(--content-pad-x);
  box-sizing: border-box;
}

/* ---- Left column ---- */
.hero-text {
  width: min(55vw, 700px);  /* fluid, never squeezes headline below wrap point */
  position: relative;
}

.hero-tag {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333333;
  opacity: 0.92;
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(255, 255, 255, 0.8);
}
.hero-tag::before {
  content: none;
}
.hero-tag sup {
  font-size: 0.6em;
  top: -0.4em;
  position: relative;
}

.hero-headline {
  position: relative;
  font-family: var(--font-ja);
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800;
  color: #333333;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 255, 255, 0.85),
    0 0 8px rgba(255, 255, 255, 0.8),
    0 1px 3px rgba(255, 255, 255, 0.75);
}

.hero-headline-accent {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--accent);
}
.hero-underline {
  position: absolute;
  left: -0.05em;
  right: 0.4em;
  bottom: -0.18em;
  width: calc(100% - 0.35em);
  height: 0.35em;
  color: var(--accent);
  pointer-events: none;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: hero-underline-draw 1.2s ease-out 0.5s forwards;
  transform: rotate(-1deg);
  transform-origin: left center;
}
@keyframes hero-underline-draw {
  to { stroke-dashoffset: 0; }
}

.hero-sparkles {
  position: absolute;
  top: -0.2em;
  right: -0.5em;
  width: 0.9em;
  height: 0.9em;
  color: #FFEFA8;
  pointer-events: none;
}
.hero-sparkle {
  position: absolute;
  display: block;
  filter:
    drop-shadow(0 0 2px rgba(255, 248, 200, 0.95))
    drop-shadow(0 0 5px rgba(255, 200, 80, 0.85))
    drop-shadow(0 0 10px rgba(245, 158, 11, 0.55));
  transform-origin: center;
}
.hero-sparkle--lg {
  top: 0;
  right: 0;
  width: 48%;
  height: 48%;
  animation: hero-sparkle-twinkle 7s ease-in-out infinite;
}
.hero-sparkle--sm {
  bottom: 0;
  left: 0;
  width: 26%;
  height: 26%;
  animation: hero-sparkle-twinkle 7s ease-in-out -3s infinite;
}
@keyframes hero-sparkle-twinkle {
  0%   { transform: scale(0.96) rotate(-12deg); opacity: 0.82; }
  50%  { transform: scale(1.04) rotate(12deg);  opacity: 1; }
  100% { transform: scale(0.96) rotate(-12deg); opacity: 0.82; }
}

.hero-sub {
  font-family: var(--font-ja);
  font-size: 1.0625rem;
  color: #5A6573;
  letter-spacing: 0.03em;
  line-height: 1.9;
  margin: 0 0 2rem;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 4px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.9);
}
.hero-sub sup {
  font-size: 0.65em;
  top: -0.4em;
  position: relative;
}

/* CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.hero-cta-primary:hover {
  transform: none;
}
.hero-cta-arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--transition);
}
.hero-cta-primary:hover .hero-cta-arrow {
  transform: translateX(4px);
}
.hero-link {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding-bottom: 2px;
  position: relative;
  transition: text-shadow var(--transition);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.60),
    0 0 8px rgba(255, 255, 255, 0.60),
    0 0 4px rgba(255, 255, 255, 0.60),
    0 1px 2px rgba(255, 255, 255, 0.50);
}
.hero-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.hero-link:hover {
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 4px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.90);
}
.hero-link:hover::after {
  transform: scaleX(1);
}
.hero-link-arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--transition);
}
.hero-link:hover .hero-link-arrow {
  transform: translateX(4px);
}

/* Stats — the load-bearing visual proof */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 520px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.hero-stat-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.8vw, 3.6rem);
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-pct {
  font-size: 0.52em;
  font-weight: 700;
  margin-left: 0.1em;
  color: var(--primary);
  opacity: 0.9;
}
.hero-stat-rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  opacity: 0.9;
  border-radius: 2px;
}
.hero-stat-label {
  font-family: var(--font-ja);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}
.hero-stat-label sup {
  font-size: 0.7em;
  top: -0.3em;
  position: relative;
}

/* Soft transition into the next section */
.hero-bottom-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-warm) 18%, var(--border-warm) 82%, transparent);
  z-index: 2;
  pointer-events: none;
}

/* ---- Tablet (768–1023px) ---- */
@media (max-width: 1023px) {
  .hero-inner {
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
  }
  .hero-text { width: min(52vw, 700px); }
  .hero-headline { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
  .hero-stats { max-width: 100%; }
  .hero-img { object-position: 70% center; }

  /* Stronger left wash since the subject sits closer to the text on tablet */
  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(250, 247, 243, 0.96) 0%,
        rgba(250, 247, 243, 0.85) 35%,
        rgba(250, 247, 243, 0.30) 55%,
        rgba(250, 247, 243, 0)    72%
      );
  }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  /* Image becomes a banner at the top */
  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: 46vh;
    min-height: 280px;
    max-height: 420px;
    flex-shrink: 0;
  }
  .hero-img {
    object-position: 78% 35%;  /* keep subject + window in frame */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  }
  /* Overlay: vertical fade only, kept light so image dominates */
  .hero-overlay {
    background: none;
  }
  .hero-inner {
    position: relative;
    min-height: auto;
    padding: 1.5rem 1.5rem 2.5rem;
  }
  .hero-text {
    width: 100%;
    padding: 0;
  }
  .hero-tag {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
  .hero-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }
  .hero-sparkles { right: -0.45em; top: -0.2em; width: 0.85em; height: 0.85em; }
  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
  }
  .hero-sub-break { display: none; }
  .hero-actions {
    display: none;
  }
  .hero-cta-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-link {
    text-align: center;
    align-self: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .hero-stat {
    padding: 1rem 1rem 1.1rem;
    align-items: center;
    text-align: center;
  }
  .hero-stat-num { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-stat-rule { align-self: center; }
  .hero-stat-label { text-align: center; font-size: 0.75rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-underline {
    stroke-dashoffset: 0;
    animation: none;
  }
  .hero-sparkle { animation: none; }
}

/* =====================
   2. WORRIES — Polaroid photo + numbered list + brand resolution
   ===================== */
.section-worries {
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

/* ---- Header ---- */
.worries-header {
  max-width: 720px;
  margin: 0 auto 4.5rem;
}
.worries-title { margin-bottom: 1rem; }
.worries-title-br { display: none; }
.worries-title-mark {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--text-main);
  white-space: nowrap;
}
.worries-title-mark::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.12em;
  height: 0.32em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 18' preserveAspectRatio='none'><path d='M4 12 Q 80 2, 160 8 T 316 6' fill='none' stroke='%23F59E0B' stroke-width='5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.worries-lede {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* ---- Body: photo (left) + numbered list (right) ---- */
.worries-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

/* Polaroid-style photo frame */
.worries-figure {
  position: relative;
  margin: 0;
  padding: 0.8rem 0.8rem 3.4rem;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 18px 38px rgba(35, 25, 15, 0.16);
  transform: rotate(-1.8deg);
  max-width: 380px;
  margin-left: auto;
  margin-right: 1.5rem;
}
/* Washi-tape decorations on top-left & bottom-right corners */
.worries-figure::before,
.worries-figure::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 238, 180, 0)    0%,
    rgba(255, 238, 180, 0.5) 14%,
    rgba(253, 230, 160, 0.55) 50%,
    rgba(255, 238, 180, 0.5) 86%,
    rgba(255, 238, 180, 0)  100%
  );
  box-shadow: 0 2px 5px rgba(35, 25, 15, 0.07);
  z-index: 3;
  pointer-events: none;
}
.worries-figure::before {
  top: -2px;
  left: -42px;
  transform: rotate(-42deg);
}
.worries-figure::after {
  bottom: -2px;
  right: -42px;
  transform: rotate(-42deg);
}

.worries-figure-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3efe9;
}
.worries-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: saturate(0.92) contrast(0.96);
}
/* Subtle vignette to focus the subject */
.worries-figure-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(20, 28, 50, 0.12) 100%);
  pointer-events: none;
}

.worries-figure-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
}

/* Hand-drawn "?" mark popping out of the polaroid corner */
.worries-figure-mark {
  display: none;
}

/* ---- Numbered worry list ---- */
.worries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.worry-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.95rem 1.25rem 0.95rem 1.1rem;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-md);
}

.worry-num {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid rgba(0, 174, 239, 0.35);
  border-radius: var(--r-full);
  padding: 0.2rem 0.65rem;
  line-height: 1;
}

.worry-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0;
}

/* ---- Resolution callout ---- */
.worries-answer {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.75rem 2.25rem;
  text-align: left;
}

.worries-answer-tag {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.worries-answer-headline {
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0 0 1.1rem;
  letter-spacing: 0.005em;
}

.worries-answer-brand {
  font-style: normal;
  font-family: var(--font-deco);
  font-weight: 700;
  font-size: 1.35em;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 0;
  box-shadow: inset 0 -0.14em 0 rgba(245, 158, 11, 0.22);
  padding: 0 0.08em;
  margin-right: 0.3em;
}

.worries-answer-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.95;
  margin: 0 0 1.6rem;
  max-width: 640px;
}
.worries-answer-break { display: none; }

.worries-answer-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding-bottom: 2px;
  position: relative;
}
.worries-answer-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.worries-answer-cta:hover::after {
  transform: scaleX(1);
}
.worries-answer-cta-arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--transition);
}
.worries-answer-cta:hover .worries-answer-cta-arrow {
  transform: translateX(4px);
}

/* ---- Tablet (≤1023px) ---- */
@media (max-width: 1023px) {
  .worries-body { gap: 2.5rem; grid-template-columns: 0.9fr 1.1fr; }
  .worries-figure { max-width: 320px; margin-right: 0.5rem; }
  .worries-figure-mark { font-size: 4.4rem; top: -1.3rem; right: -1.1rem; }
  .worries-figure-caption { font-size: 1.35rem; }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {
  .worries-title-br { display: inline; }
  .worries-title-punct { display: none; }
  .worries-header { margin-bottom: 2.25rem; }
  .worries-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
  .worries-figure {
    max-width: 280px;
    margin: 0 auto;
    padding: 0.7rem 0.7rem 2.8rem;
  }
  .worries-figure-mark { font-size: 4rem; top: -1.1rem; right: -0.9rem; }
  .worries-figure-caption { font-size: 1.3rem; bottom: 0.5rem; }

  .worry-item { padding: 0.85rem 1rem; gap: 0.85rem; }
  .worry-text { font-size: 0.9rem; }

  .worries-answer { padding: 1.85rem 1.5rem 1.65rem; }
  .worries-answer-meta { gap: 0.7rem; margin-bottom: 1.1rem; }
  .worries-answer-headline { font-size: 1.15rem; line-height: 1.75; }
  .worries-answer-break { display: inline; }
  .worries-answer-sub { font-size: 0.9rem; line-height: 1.85; }
}

/* =====================
   3. STRENGTHS
   ===================== */
.section-strengths { background: var(--bg-cream); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.strength-card {
  background: var(--bg-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.strength-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  overflow: hidden;
}
.strength-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.strength-card-expand {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(35, 25, 15, 0.08);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(35, 25, 15, 0.12);
  transition: background var(--transition), transform var(--transition);
}
.strength-card-expand svg {
  width: 16px;
  height: 16px;
}
.strength-card-expand:hover {
  background: #fff;
  transform: scale(1.06);
}
.strength-card-expand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.strength-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}
.strength-num {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.strength-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}
.strength-keyword {
  font-style: normal;
  color: var(--accent);
}
.strength-summary,
.strength-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
  margin: 0;
}

@media (max-width: 768px) {
  .strengths-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---- Strength detail modal ---- */
.strength-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: strength-modal-fade 0.18s ease-out;
}
.strength-modal[hidden] {
  display: none;
}
@keyframes strength-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.strength-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.strength-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: strength-modal-rise 0.22s ease-out;
}
.strength-modal-scroll-area {
  flex: 1;
  overflow-y: auto;
}
.strength-modal-drag-handle,
.strength-modal-top-fade {
  display: none;
}
@keyframes strength-modal-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.strength-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(35, 25, 15, 0.08);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(35, 25, 15, 0.12);
  transition: background var(--transition);
}
.strength-modal-close svg {
  width: 16px;
  height: 16px;
}
.strength-modal-close:hover {
  background: #fff;
}
.strength-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.strength-modal-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm);
}
.strength-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.strength-modal-content {
  padding: 1.75rem 1.75rem 2rem;
}
.strength-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--text-main);
  margin: 0 0 1rem;
}
.strength-modal-body {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.95;
}
.strength-modal-body p {
  margin: 0 0 0.8rem;
}
.strength-modal-body p:last-child {
  margin-bottom: 0;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .strength-modal {
    align-items: flex-end;
    padding: 0;
  }
  .strength-modal-panel {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: strength-drawer-rise 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes strength-drawer-rise {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .strength-modal-drag-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 2.5rem;
    cursor: grab;
    touch-action: none;
  }
  .strength-modal-drag-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  .strength-modal-top-fade {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background: linear-gradient(to bottom, var(--bg-white) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
  }
  .strength-modal-close {
    display: none;
  }
  .strength-modal-scroll-area {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .strength-modal-content {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .strength-modal-title {
    font-size: 1.3rem;
  }
  .strength-modal-body {
    font-size: 0.9rem;
  }
}

/* Modal rich content helpers */
.modal-callout {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--r-md);
  padding: 1.5rem 1.25rem 1.15rem;
  margin: 1.5rem 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.8;
  text-align: left;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}
.modal-callout::before {
  content: 'POINT';
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: var(--accent);
  color: #fff;
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.modal-stat-row {
  display: flex;
  gap: 0.65rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.modal-stat {
  flex: 1;
  min-width: 60px;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--r-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.modal-stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.modal-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
}

.modal-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.56em;
}

.modal-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}

.modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-full);
  background: rgba(0, 174, 239, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 174, 239, 0.25);
}

.modal-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 1.1rem 0 0.4rem;
}

/* =====================
   4. RESULTS
   ===================== */
.section-results { background: var(--bg-white); }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text-main);
}
.story-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.student-grade {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-full);
}
.student-name {
  font-size: 0.85rem;
  font-weight: 700;
}
.story-achievement { margin-bottom: 0.85rem; }
.achievement-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 174, 239, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  margin-bottom: 0.3rem;
}
.story-achievement h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.story-quote {
  font-size: 0.83rem;
  font-style: italic;
  color: var(--text-light);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.story-text {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 1rem;
}
.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

/* Stats row (below stories) */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: var(--bg-cream);
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  border: 1px solid var(--border-warm);
}
.stat-item { text-align: center; }
.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.stat-number {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  font-size: 2rem;
}
.stat-number strong { font-size: 3.5rem; }
.stat-number span   { font-size: 1.75rem; }
.stat-item.highlight .stat-number strong { color: var(--primary); }
.stat-divider {
  font-size: 1.75rem;
  color: var(--border-warm);
  font-weight: 300;
  align-self: center;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .stories-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem; }
  .stat-divider { display: none; }
}
@media (min-width: 640px) and (max-width: 1024px) {
  .stories-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================
   5. INSTRUCTOR
   ===================== */
.section-instructor { background: var(--bg-cream); }

.instructor-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.instructor-img-col img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.instructor-name {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.credential-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.credential {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-full);
  padding: 0.22rem 0.75rem;
}
.instructor-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.92;
  margin-bottom: 2rem;
}
.instructor-note {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-white);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-md);
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.instructor-note::before {
  content: '👤';
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .instructor-inner { grid-template-columns: 1fr; gap: 2rem; }
  .instructor-img-col { max-width: 260px; margin: 0 auto; }
}

/* =====================
   6. COURSES — Bento Box
   ===================== */
.section-courses { background: var(--bg-white); }

.courses-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.course-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  color: #fff;
}
.course-card:hover { opacity: 1; }
.course-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-card-bg { transform: scale(1.06); }
.course-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 40, 0.90) 0%,
    rgba(8, 18, 40, 0.42) 55%,
    transparent 100%
  );
}
.course-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.75rem;
}
.course-grade {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-full);
  padding: 0.18rem 0.7rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}
.course-card-content h3 {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.course-price {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.4rem;
}
.course-price span {
  opacity: 0.65;
  font-size: 0.88em;
}
.course-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 640px) {
  .courses-bento { grid-template-columns: 1fr; }
  .course-card { min-height: 220px; }
}

/* =====================
   7. FLOW
   ===================== */
.section-flow { background: var(--bg-cream); }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(12.5% + 0.75rem);
  right: calc(12.5% + 0.75rem);
  height: 2px;
  background: var(--border-warm);
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38);
}
.step-body h3 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}
.step-time {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-body p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.85;
}
.flow-cta { margin-top: 3rem; text-align: center; }

@media (max-width: 768px) {
  .flow-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow-steps::before { display: none; }
  .flow-step {
    text-align: left;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .step-num { flex-shrink: 0; margin: 0; }
}

/* =====================
   8. FAQ
   ===================== */
.section-faq { background: var(--bg-white); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border-warm);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
  user-select: none;
}
.faq-item summary:hover { background: var(--bg-cream); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--bg-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--primary);
  color: #fff;
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.865rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* =====================
   9. FINAL CTA
   ===================== */
.section-cta {
  position: relative;
  padding: var(--sp-2xl) 0;
  overflow: hidden;
  background: #0a1428;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 15, 40, 0.72) 0%,
    rgba(0, 35, 75, 0.55) 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.cta-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.cta-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .cta-sub br { display: none; }
}
