/* Dioscope · Dermatology Board Review — complements to styles.css (the "dala" design shared with the homepage and the
   course landing pages). Same tokens (--bg, --ink, --glass, --line, --blue, …). Light theme by default, dark via the
   header toggle. Hero in two columns: message on the left, a realistic laptop on the right showing a topic page. */

/* particles of the background sphere: almost a single Dioscope blue in the light theme (as in lp/ife-psiquiatria) */
:root[data-theme="light"] { --bg: #ffffff; --bg-rgb: 255,255,255; --p-front: 53,125,237; --p-mid: 53,125,237; --p-back: 120,170,245; }

/* ---------- Landing ---------- */
.landing--pn { padding-top: 8rem; }
@media (max-width: 767px) {
  .landing--pn { padding-top: 5.5rem; }
  .landing--pn .landing__body::before { display: none; }
  /* the sphere stays with the hero: absolute canvas at the top of the page instead of fixed to the viewport */
  .bg-canvas { position: absolute; inset: auto; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; }
}
.hero { display: grid; gap: 2.5rem; width: 100%; align-items: center; }
@media (min-width: 1024px) {
  /* first screen = hero + numbers bar: the section fills the viewport, the hero is centred in what is left and the
     numbers stay pinned to the bottom edge, visible without scrolling (as on the homepage) */
  .landing--pn { min-height: 100vh; min-height: 100svh; padding-top: 8rem; justify-content: flex-start; }
  .hero { flex: 1 1 auto; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-content: center; }
  .landing--pn .landing__title { margin-top: 0; }
  .landing--pn .landing__body { margin-bottom: 0; }
}
.landing--pn .landing__body { max-width: 40rem; }
.landing--pn .landing__body .lead { font-size: 1.05rem; line-height: 1.6; font-weight: 400; letter-spacing: 0; color: var(--ink-2); max-width: 40rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips--hero { margin-top: 1.25rem; }
.chip { padding: .6rem 1rem; border-radius: 2rem; border: 1px solid var(--line-2); color: var(--ink); font-size: .85rem; font-weight: 500; line-height: 1; background: var(--card); transition: background .4s, color .4s, border-color .4s; }
.chip:hover { background: var(--hover-fill); color: var(--hover-ink); border-color: var(--hover-fill); }
.landing--pn .landing__actions { gap: 1rem 1.5rem; margin-top: 1.75rem; }
.hero__price { margin-top: 1.25rem; font-size: .85rem; color: var(--ink-3); max-width: 34rem; line-height: 1.5; }

/* numbers: glass bar from margin to margin */
.landing--pn .stats {
  margin-top: 3rem; margin-bottom: 0; padding: 2.25rem var(--pad-x) 2rem; border-top: 0; gap: 2rem 1.5rem;
  margin-left: calc(-1 * var(--pad-x)); margin-right: calc(-1 * var(--pad-x)); width: calc(100% + 2 * var(--pad-x));
  background: var(--glass); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.landing--pn .stats strong { color: var(--ink); }
.landing--pn .stats span { color: var(--ink-2); }
@media (min-width: 768px) { .landing--pn .stats strong { white-space: nowrap; font-size: clamp(2rem, 2.5vw, 3.4rem); } }
@media (min-width: 768px) { .landing--pn .stats { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
@media (min-width: 1024px) { .landing--pn .stats { margin-top: auto; padding-top: 1.75rem; padding-bottom: 1.5rem; } .landing--pn .stats strong { font-size: clamp(2rem, 2.4vw, 3rem); } }
@media (max-width: 767px) {
  .landing--pn .stats { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .landing--pn .stats strong { font-size: 2.2rem; white-space: nowrap; }
  .landing--pn .stats span { margin-top: .4rem; }
}

/* ---------- Hero variant C: light, two columns, title in navy + blue ---------- */
.landing--c { padding-bottom: 0; }
.landing--c::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(42% 55% at 82% 38%, rgba(53,125,237,.14), transparent 72%); }
.hero--c { align-items: center; }
@media (min-width: 1024px) { .hero--c { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; } }
.landing--c .eyebrow { color: var(--blue); margin-bottom: 1.25rem; }
.landing--c .landing__title { color: var(--ink); font-size: clamp(2.6rem, 9.5vw, 3.8rem); }
@media (min-width: 768px)  { .landing--c .landing__title { font-size: 4.4rem; } }
@media (min-width: 1366px) { .landing--c .landing__title { font-size: 5.6rem; line-height: .96; margin-bottom: 2rem; } }
.landing--c .landing__title em { font-style: normal; color: var(--blue); }
.landing--c .landing__body { max-width: 36rem; }
.landing--c .landing__actions { margin-top: 1.5rem; }
.landing--c .link-arrow { font-size: .9rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }

/* ---------- Laptop mockup (right column of the hero) ---------- */
.hero__laptop { position: relative; display: grid; gap: 1rem; justify-items: center; width: 100%; }
@media (min-width: 1024px) { .hero__laptop { padding-right: .5rem; } }
.hero__caption { font-size: .78rem; color: var(--ink-3); text-align: center; letter-spacing: .02em; }

.laptop {
  --lid: #1b1d21;                 /* lid and bezel (space grey) */
  --lid-edge: #3a3d43;
  --base-top: #d8dbe0;            /* aluminium base */
  --base-mid: #b9bdc4;
  --base-bottom: #8e939b;
  --base-line: #f4f5f7;
  --notch: #7d8188;
  --shadow: rgba(12,44,61,.28);
  position: relative; width: 100%; max-width: 48rem;
}
:root:not([data-theme="light"]) .laptop { --base-top: #5a5e66; --base-mid: #44474e; --base-bottom: #2b2d33; --base-line: #7c8089; --notch: #1f2126; --shadow: rgba(0,0,0,.55); }
.laptop__lid {
  position: relative; z-index: 2; margin: 0 4.5%;
  padding: 2.6% 2.6% 3.2%; border-radius: 1.1rem 1.1rem .35rem .35rem;
  background: linear-gradient(180deg, #2a2d33, var(--lid) 12%, var(--lid) 88%, #121316);
  box-shadow: inset 0 0 0 1px var(--lid-edge), inset 0 1px 0 rgba(255,255,255,.14), 0 1px 0 rgba(0,0,0,.4);
}
.laptop__cam { position: absolute; top: 1.1%; left: 50%; width: .34rem; height: .34rem; margin-left: -.17rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #4b5e7a, #0b0e14 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.laptop__screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: .35rem;
  background: #081a29; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.laptop__page {
  display: block; width: 100%; height: auto; transform-origin: 3% 0;
  animation: laptop-browse 16s linear infinite;
}
/* "browsing": the page is shown a touch zoomed (origin near the left edge, so the logo and the contents column stay
   whole and only the right-hand header links fall out of frame). The scroll is straight down, in two short wheel-like
   steps with pauses to read, then back to the top, as a person would do it. Only translateY changes; no tilt. */
@keyframes laptop-browse {
  0%, 18%   { transform: scale(1.13) translateY(0); animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  22%, 45%  { transform: scale(1.13) translateY(-6%); animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  49%, 72%  { transform: scale(1.13) translateY(-11.5%); animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  77%, 100% { transform: scale(1.13) translateY(0); }
}
.laptop__glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,0) 46%, rgba(255,255,255,0) 100%); }
.laptop__base {
  position: relative; z-index: 3; height: .95rem; border-radius: .18rem .18rem .9rem .9rem;
  background: linear-gradient(180deg, var(--base-line) 0, var(--base-top) 8%, var(--base-mid) 55%, var(--base-bottom) 100%);
  box-shadow: 0 1px 0 rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.18);
}
.laptop__base::before, .laptop__base::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2.2%; }
.laptop__base::before { left: 0; border-radius: .18rem 0 0 .9rem; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); }
.laptop__base::after { right: 0; border-radius: 0 .18rem .9rem 0; background: linear-gradient(270deg, rgba(0,0,0,.18), transparent); }
.laptop__notch { position: absolute; top: 0; left: 50%; width: 13%; height: .32rem; transform: translateX(-50%); border-radius: 0 0 .6rem .6rem;
  background: linear-gradient(180deg, var(--notch), var(--base-mid)); box-shadow: inset 0 -1px 0 rgba(255,255,255,.25); }
.laptop__foot { height: .28rem; margin: 0 1.6%; border-radius: 0 0 .5rem .5rem;
  background: linear-gradient(180deg, var(--base-bottom), rgba(0,0,0,.35)); opacity: .9; }
.laptop__shadow { position: absolute; left: 4%; right: 4%; bottom: -1.2rem; height: 2.4rem; border-radius: 50%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, var(--shadow), transparent 70%); filter: blur(6px); }
@media (max-width: 1023px) { .hero__laptop { order: 2; } .laptop { max-width: 34rem; } }
/* a still from a mechanism video, full screen: nothing to scroll */
.laptop__page--video { animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .laptop__page { animation: none; transform: none; }
}

/* ---------- Section heads ---------- */
.block { display: block; }
.sec-head { max-width: 46rem; margin-bottom: 2.5rem; }
.sec-head .lead { margin-top: 1.25rem; }
.sec-head .lead + .lead { margin-top: .75rem; }
.sec-head .lead strong { font-weight: 500; color: var(--ink); }
@media (max-width: 1023px) {
  .sec-head { position: relative; z-index: 1; }
  .sec-head::before {
    content: ""; position: absolute; z-index: -1; top: -.75rem; bottom: -.75rem; left: calc(-1 * var(--pad-x)); right: calc(-1 * var(--pad-x));
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(0deg, rgba(var(--bg-rgb),.55), rgba(var(--bg-rgb),.15)); pointer-events: none;
  }
  .section--pn .sec-head::before { display: none; }
}

/* ---------- Solid Dioscope blue section (tokens inverted for white text) ---------- */
.section--pn {
  --ink: #ffffff; --ink-2: rgba(255,255,255,.86); --ink-3: rgba(255,255,255,.64); --blue-soft: #d9e8ff;
  --line: rgba(255,255,255,.2); --line-2: rgba(255,255,255,.32); --card: rgba(255,255,255,.06);
  --glass: rgba(255,255,255,.1); --glass-2: rgba(255,255,255,.16); --glass-hi: rgba(255,255,255,.25); --shadow: rgba(4,30,70,.35);
  --hover-fill: #ffffff; --hover-ink: var(--navy); --bg-rgb: 53,125,237;
  position: relative; isolation: isolate; background: var(--blue); color: var(--ink);
}
.section--pn em { color: #d9e8ff; }
.section--pn .eyebrow { color: var(--ink-3); }
.section--pn .lead { color: var(--ink-2); }
.section--pn .stage p { color: var(--ink-2); }
.section--pn .stage:hover { border-color: rgba(255,255,255,.7); }
.section--pn .feat .stage__icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.section--pn .stage:hover .stage__icon { background: #fff; border-color: #fff; color: var(--blue); }

/* ---------- What each topic contains (4 cards in the blue band) ---------- */
.feats { display: grid; gap: 1.25rem; }
@media (min-width: 768px)  { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1366px) { .feats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.feat { padding: 1.75rem; border-radius: 1.5rem; }
.feat .stage__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; margin-bottom: .75rem; position: relative;
  background: rgba(53,125,237,.14); border: 1px solid var(--line-2); color: var(--blue-soft);
}
.feat .stage__icon svg { width: 1.6rem; height: 1.6rem; }
.feat .eyebrow { margin-top: .25rem; margin-bottom: 0; }
.feat h3.h-36 { font-size: 1.5rem; }
.feat p { font-size: .95rem; }

/* ---------- Method: numbered steps like the career stages of the homepage ---------- */
.method-nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem 3.5rem; margin: 0 0 1rem; }
.method-nums strong { display: block; font-size: 2.75rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
.method-nums span { display: block; margin-top: .5rem; font-size: .85rem; color: var(--ink-2); letter-spacing: .02em; }
.percurso .stages { margin-top: 2.5rem; }
.percurso .stage { border-color: rgba(12,44,61,.1); box-shadow: 0 10px 30px rgba(12,44,61,.06); }
.percurso .stage--white:hover { border-color: rgba(53,125,237,.6); }
.percurso .stage__num { position: static; font-size: 2.6rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: .35rem; color: rgba(53,125,237,.35); transition: color .5s, transform .8s var(--ease); }
.percurso .stage--blue .stage__num { color: rgba(255,255,255,.55); }
.percurso .stage .eyebrow { margin-bottom: .25rem; }
.percurso .stage h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
.percurso .stage p { font-size: .95rem; }

/* ---------- Included: intro pinned on the left, check list on the right ---------- */
.included__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .included__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 4rem; } }
@media (min-width: 1024px) { .included__intro { position: sticky; top: 7rem; } }
.included__intro .sec-head { margin-bottom: 0; }
.included__intro .landing__actions { margin-top: 2rem; }
.check { display: grid; gap: 0; }
.check__item { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; align-items: start; padding: .95rem 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
.check__item:last-child { border-bottom: 1px solid var(--line); }
.check__item svg { width: 1.4rem; height: 1.4rem; margin-top: .05rem; color: var(--blue-soft); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 4rem; } }
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--line-2); border-radius: 1.1rem; background: var(--card); backdrop-filter: blur(10px); overflow: hidden; transition: border-color .4s; }
.faq__item[open], .faq__item:hover { border-color: rgba(53,125,237,.6); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--blue); font-weight: 400; transition: transform .4s var(--ease), background .4s, color .4s; }
.faq__item[open] summary::after { content: "–"; background: var(--blue); color: #fff; border-color: var(--blue); }
.faq__a { padding: 0 1.4rem 1.2rem; }
.faq__a p { font-size: .95rem; color: var(--ink-2); line-height: 1.6; max-width: 40rem; }

/* ---------- Footer ---------- */
.footer__lead { margin-top: 1.25rem; font-size: 1.05rem; color: var(--ink-2); line-height: 1.6; }
.footer__legal { text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: -3rem 1rem 3rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  .chip, .faq__item, .faq__item summary::after { transition: none; }
}

/* ---------- See it: stills from the mechanism videos ---------- */
.ver__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .ver__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .ver__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.ver__item { margin: 0; border: 1px solid var(--line-2); border-radius: 1.25rem; overflow: hidden; background: var(--card); box-shadow: 0 18px 40px var(--shadow); }
.ver__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f4f7fb; }
.ver__item figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .9rem 1.1rem 1rem; font-size: .9rem; color: var(--ink-2); }
.ver__item figcaption strong { font-weight: 500; color: var(--ink); }
.ver__nota { margin-top: 1.25rem; font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
