/* Worldchefs Academy on Foodverse (Part 5). Mockups and copy from the FV Learning learner guide. */

/* ---------- Phone frame (shared) ---------- */
.phone {
  position: relative; width: 240px; aspect-ratio: 540 / 1077; border-radius: 36px; border: 7px solid #1c1c1c; background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06), 0 0 80px rgba(255,107,53,.12); overflow: hidden;
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.phone-lg { width: 300px; }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; overflow: hidden; }
.hero::before { inset: -10% 30% auto 0; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-pill { margin-bottom: 16px; }
.hero-kicker { margin: 16px 0 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--fv-text-soft); }
.hero-sub { max-width: 620px; margin: 16px 0 32px; }
.hero-facts { list-style: none; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--fv-border); display: grid; grid-template-columns: repeat(4, auto); gap: 24px 40px; justify-content: start; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-size: 32px; font-weight: 700; line-height: 1; background: var(--fv-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-facts span { font-size: 14px; color: var(--fv-text-muted); }
.hero-showcase { min-width: 0; }
.hero-visual { position: relative; height: 580px; isolation: isolate; }
/* The source images already contain their complete device frames. */
.phone { border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.hero-visual .carousel-phone { position: absolute; width: 270px; top: 16px; left: 50%; transition: transform 1s var(--ease), opacity 1s ease; }
.carousel-phone[data-position="front"] { transform: translateX(-50%); z-index: 3; opacity: 1; }
.carousel-phone[data-position="left"] { transform: translateX(-85%) translateY(10px) scale(.82) rotate(-9deg); z-index: 1; opacity: .65; }
.carousel-phone[data-position="right"] { transform: translateX(-15%) translateY(10px) scale(.82) rotate(9deg); z-index: 2; opacity: .65; }
.phone-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
#phone-caption { min-width: 130px; text-align: center; }
.phone-control { border: 1px solid var(--fv-border); background: var(--fv-glass); color: var(--fv-text); border-radius: 24px; min-width: 44px; min-height: 44px; padding: 8px 12px; font: inherit; cursor: pointer; }
.phone-control:hover { border-color: var(--fv-orange); }
.phone-control:focus-visible { outline: 2px solid var(--fv-orange); outline-offset: 4px; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase { width: 100%; max-width: 560px; justify-self: center; }
  .hero-facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 767px) {
  .hero { padding-top: 48px; }
  .hero-copy .btn-row .btn { width: 100%; }
  .hero-visual { height: 470px; }
  .hero-visual .carousel-phone { width: 210px; top: 24px; }
  .hero-facts strong { font-size: 26px; }
  .phone-controls { gap: 6px; flex-wrap: wrap; }
  #phone-caption { min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .carousel-phone { transition: none; }
}

/* ---------- Shared section rhythm ---------- */
.intro { max-width: 680px; margin-top: 12px; }
.section-tight { padding-top: 0; }
.move-n { font-size: 28px; font-weight: 700; line-height: 1; background: var(--fv-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Four moves */
.moves { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.move { display: grid; gap: 12px; align-content: start; }
.move .h3 { margin: 4px 0 0; }
.move .body { font-size: 15px; }
@media (max-width: 1023px) { .moves { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .moves { grid-template-columns: 1fr; } }

/* Tracks */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.cards-2 .card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cards-2 .card .btn { margin-top: auto; }
.cards-2 .card .body { margin-bottom: 20px; }
.cards-2 .h3 { margin-bottom: 8px; }
.track { padding: 0; overflow: hidden; }
.track-cover { width: 100%; aspect-ratio: 1296 / 725; overflow: hidden; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.track:hover .track-cover img { transform: scale(1.04); }
.track-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1; width: 100%; }
.track-body .eyebrow { margin: 0; }
.track-body .h3 { margin: 0; }
.track-body .body { margin: 0; }
.track-modules { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; width: 100%; }
.track-modules li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fv-text-soft); }
.track-body .btn { margin-top: auto; white-space: normal; text-align: center; }
.optional-note { margin: 20px 0 0; }
@media (max-width: 767px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---------- Walkthrough: sticky phone + steps ---------- */
.walk { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; margin-top: 48px; align-items: start; }
.walk-phone { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; justify-items: center; }
.walk-phone .phone img { transition: opacity .25s ease; }
.walk-phone .phone img.is-swapping { opacity: 0; }
.walk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.walk-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; cursor: pointer; transition: border-color .3s, background-color .3s; }
.walk-step .h3 { margin-bottom: 6px; }
.walk-step .body { font-size: 16px; }
.walk-step.is-active { border-color: rgba(255,107,53,0.45); background: linear-gradient(to bottom right, rgba(255,107,53,0.10), rgba(255,255,255,0.04)); }
@media (max-width: 1023px) {
  .walk { grid-template-columns: 1fr; gap: 24px; }
  .walk-phone { position: static; }
  .walk-steps { display: grid; grid-template-columns: 1fr 1fr; }
  .walk-step.is-active { border-color: var(--fv-border); background: var(--fv-glass); }
}
@media (max-width: 767px) { .walk-steps { grid-template-columns: 1fr; } .walk-phone .phone-lg { width: 240px; } }

/* Practical */
.practical { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding: 48px; overflow: hidden; border-radius: 24px; }
.practical .h2 { margin-bottom: 12px; }
.stages { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.stages li { display: grid; gap: 6px; justify-items: start; }
.practical-visual { display: grid; justify-items: center; align-self: end; margin-bottom: -120px; }
@media (max-width: 1023px) { .practical { grid-template-columns: 1fr; } .practical-visual { margin-bottom: -140px; } }
@media (max-width: 767px) { .practical { padding: 32px 20px 0; } .practical-visual { margin-bottom: -40px; } .practical-visual .phone { width: 200px; } }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; gap: 24px; margin-top: 40px; }
.cred-figure { margin: 0; padding: 24px; display: grid; gap: 16px; justify-items: center; }
.cred-figure img { max-width: 100%; height: auto; border-radius: 12px; }
.cred-certs { grid-template-columns: 1fr 1fr; }
.cred-certs figcaption { grid-column: 1 / -1; }
.cred-figure figcaption { text-align: center; }
.ladder { list-style: none; margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: end; border-bottom: 1px solid var(--fv-border); }
.tier { background: var(--fv-glass); border: 1px solid var(--fv-border); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--fv-gradient); }
.tier .eyebrow { margin-bottom: 8px; }
.tier .h3 { margin-bottom: 6px; }
.tier .small { margin: 0; }
.tier:nth-child(2) { margin-bottom: 24px; }
.tier:nth-child(3) { margin-bottom: 48px; }
.tier:nth-child(4) { margin-bottom: 72px; }
.tier.optional { border: 1px dashed var(--fv-orange); }
.tier.optional::before { display: none; }
.tier.optional .tag { margin-bottom: 10px; }
@media (max-width: 1023px) { .ladder { grid-template-columns: 1fr 1fr; } .tier:nth-child(n) { margin-bottom: 0; } .cred-certs { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .ladder { grid-template-columns: 1fr; border-bottom: 0; }
  .tier:nth-child(2) { margin-left: 8px; } .tier:nth-child(3) { margin-left: 16px; } .tier:nth-child(4) { margin-left: 24px; }
}

/* ---------- Who / Partners ---------- */
.who-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--fv-text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2px solid var(--fv-orange); border-bottom: 2px solid var(--fv-orange); transform: rotate(-45deg) scale(.8); transform-origin: center; }
.checklist.two-col { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
@media (max-width: 1023px) { .who-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 767px) { .checklist.two-col { grid-template-columns: 1fr; } }

.partners .body { margin-bottom: 32px; }
.logo-row { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; justify-items: center; gap: 40px 56px; }
.logo-row li:first-child { grid-column: 1 / -1; }
.logo-row img { display: block; max-height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.logo-row li:first-child img { height: 120px; max-height: none; width: auto; }
@media (max-width: 767px) {
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; gap: 32px 20px; }
  .logo-row img { max-height: 58px; height: auto; }
  .logo-row li:first-child img { height: 100px; }
}


/* ---------- FAQ + form ---------- */
.faq-form { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.accordion { margin-top: 32px; border-top: 1px solid var(--fv-border); }
.accordion details { border-bottom: 1px solid var(--fv-border); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 18px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--fv-orange); border-bottom: 2px solid var(--fv-orange); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details .body { padding: 0 0 20px; }
.register { max-width: 560px; width: 100%; position: sticky; top: calc(var(--nav-h) + 24px); }
.register .h2 { font-size: 26px; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(52,199,89,.15); color: var(--fv-success); display: grid; place-items: center; margin-bottom: 16px; }
@media (max-width: 1023px) { .faq-form { grid-template-columns: 1fr; } .register { position: static; max-width: none; } }

/* ---------- Final CTA ---------- */
.final-cta { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding: 56px; overflow: hidden; border-radius: 24px; }
.final-copy { display: grid; gap: 16px; justify-items: start; }
.final-copy .h2 { max-width: 560px; }
.final-copy .body { max-width: 560px; margin: 0; }
.final-visual { display: grid; justify-items: center; align-self: end; margin-bottom: -160px; }
@media (max-width: 1023px) { .final-cta { grid-template-columns: 1fr; } .final-visual { margin-bottom: -180px; } }
@media (max-width: 767px) { .final-cta { padding: 32px 20px 0; } .final-visual { margin-bottom: -60px; } .final-visual .phone { width: 200px; } }

/* Native walkthrough controls and learner reference */
.walk-step { display: block; padding: 0; }
.walk-select { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; width: 100%; padding: 24px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.walk-select:focus-visible { outline: 2px solid var(--fv-orange); outline-offset: 4px; }
.walk-step.is-active { border-color: rgba(255,107,53,.65); background: linear-gradient(to bottom right, rgba(255,107,53,.10), rgba(255,255,255,.04)); }
.upload-note { margin-top: 24px; max-width: 560px; }
@media (max-width: 767px) {
  .walk-select { padding: 20px; gap: 16px; }
}

.practical-visual, .final-visual { margin-bottom: 0; align-self: center; }
@media (max-width: 767px) {
  .practical, .final-cta { padding-bottom: 24px; }
}

/* One consistent graphite chassis for every Academy app preview. */
.phone { --device-radius: 38px; border: 1px solid #686e75; border-radius: var(--device-radius); padding: 6px; background: linear-gradient(110deg, #6c7279, #353a40 16%, #555b62 48%, #292e34 82%, #626970); box-shadow: 0 24px 44px #0008, inset 0 0 0 1px #ffffff12; overflow: visible; }
.phone .phone-screen { position: absolute; inset: 6px; overflow: hidden; border-radius: calc(var(--device-radius) - 6px); background: #000; box-shadow: 0 0 0 1px #08090a; }
/* Only trim the baked-in exterior bezel; keep the app content within the display. */
.phone .phone-screen img { position: absolute; inset: -3.4% auto auto -6%; width: 112%; height: 106.8%; max-width: none; border-radius: 0; object-fit: fill; }
.phone::before { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: 11%; border-radius: 0 2px 2px 0; background: #5f666e; }
.phone::after { content: ""; position: absolute; left: -3px; top: 23%; width: 3px; height: 7%; border-radius: 2px 0 0 2px; background: #5f666e; box-shadow: 0 34px 0 #5f666e; }
.phone-practical { aspect-ratio: 540 / 1040; }
.final-visual .phone-refined { width: 260px; }
@media (max-width: 767px) {
  .phone { --device-radius: 32px; }
  .final-visual .phone-refined { width: 230px; }
}
