/* Gen AI course landing page. Loaded only by the `genai` layout. */

/*
  Design language:
  - Type scale: --gc-fs-sm (meta), --gc-fs-base (body), --gc-fs-lg (lead),
    --gc-fs-h3, --gc-fs-h2, --gc-fs-h1. Weights: 400 body, 600 labels, 700 headings.
  - Boxes: .gc-card (white, on the grey page) and .gc-soft (grey, inside a white surface).
  - Color: teal is the only accent; orange is reserved for the signup CTA.
*/

.gc {
  --gc-bg: #f2f2f2;
  --gc-surface: #fff;
  --gc-surface-soft: #f5f5f5;
  --gc-border: #e8e8e8;
  --gc-border-field: #d8d8d8;
  --gc-text: #1f2328;
  --gc-text-body: #3d4349;
  --gc-text-muted: #5c6268;
  --gc-teal: #0d9488;
  --gc-teal-dark: #0b7a70;
  --gc-teal-deep: #0e6f66;
  --gc-teal-tint: #dcefe9;
  --gc-cta: #c2410c;

  --gc-fs-sm: 15px;
  --gc-fs-base: 17px;
  --gc-fs-lg: 19px;
  --gc-fs-h3: 20px;
  --gc-fs-h2: clamp(26px, 3.4vw, 34px);
  --gc-fs-h1: clamp(34px, 4.8vw, 50px);
  --gc-lh: 1.7;

  --gc-radius: 8px;
  --gc-radius-sm: 5px;
  --gc-pad: clamp(20px, 3vw, 28px);
  --gc-gap: 16px;
  --gc-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  --gc-wrap: 1240px;

  background: var(--gc-bg);
  color: var(--gc-text);
  font-family: Assistant, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: var(--gc-fs-base);
  line-height: var(--gc-lh);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.gc *,
.gc *::before,
.gc *::after { box-sizing: border-box; }

.gc a { color: var(--gc-teal-deep); text-decoration: none; }
.gc a:hover { color: var(--gc-teal-dark); text-decoration: underline; }
.gc img { display: block; max-width: 100%; }
.gc input,
.gc textarea,
.gc select,
.gc button { font-family: inherit; }

.gc h1,
.gc h2,
.gc h3 { line-height: 1.3; font-weight: 700; text-wrap: balance; }

.gc p { text-wrap: pretty; }

.gc-wrap {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.gc-section {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 64px) 24px 0;
  scroll-margin-top: 24px;
}

.gc-section--last { padding-bottom: clamp(44px, 6vw, 72px); }

/* ----- Shared building blocks ----- */
.gc-card {
  background: var(--gc-surface);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow);
  padding: var(--gc-pad);
}

.gc-soft {
  background: var(--gc-surface-soft);
  border-radius: var(--gc-radius);
  padding: 16px 20px;
}

.gc-card h3 {
  margin: 0 0 8px;
  font-size: var(--gc-fs-h3);
}

.gc-card p {
  margin: 0;
  color: var(--gc-text-body);
}

.gc-h2 {
  margin: 0 0 14px;
  font-size: var(--gc-fs-h2);
}

.gc-intro {
  margin: 0 0 24px;
  font-size: var(--gc-fs-lg);
  color: var(--gc-text-body);
  max-width: 74ch;
}

.gc-intro--after { margin: 24px 0 0; }
.gc-intro strong { color: var(--gc-text); }

.gc .gc-small {
  margin: 0 0 16px;
  font-size: var(--gc-fs-sm);
  color: var(--gc-text-muted);
}

.gc .gc-small a { text-decoration: underline; }

.gc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gc-gap);
}

.gc-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--gc-text-body);
}

.gc-bullets li {
  position: relative;
  padding-inline-start: 18px;
}

.gc-bullets li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--gc-teal-deep);
}

.gc-bullets--cols {
  display: block;
  columns: 2 260px;
  column-gap: 32px;
}

.gc-bullets--cols li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.gc-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gc-teal-tint);
  color: var(--gc-teal-deep);
  border-radius: var(--gc-radius);
  padding: 6px 14px;
  font-size: var(--gc-fs-sm);
  font-weight: 600;
}

.gc .gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--gc-radius-sm);
  padding: 12px 28px;
  font-size: var(--gc-fs-base);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.gc .gc-btn:hover { text-decoration: none; }
.gc .gc-btn--cta { background: var(--gc-cta); color: #fff; }
.gc .gc-btn--cta:hover { filter: brightness(0.93); color: #fff; }

/* ----- Header ----- */
.gc-header {
  background: var(--gc-surface);
  border-bottom: 1px solid var(--gc-border);
}

.gc-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 8px;
  min-height: 64px;
}

.gc-header-logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin-inline-end: 20px;
  flex: none;
}

.gc-header-logo img { height: 30px; width: auto; }

.gc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  font-size: 16px;
  flex: 1 1 260px;
}

.gc-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gc-text-body);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.gc-nav a:hover { background: var(--gc-surface-soft); color: var(--gc-text-body); text-decoration: none; }

.gc-nav a.menu-active {
  color: var(--gc-text);
  background: var(--gc-surface-soft);
  border-bottom-color: var(--gc-teal);
}

.gc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 10px 0;
}

.gc .gc-btn-login {
  display: inline-flex;
  align-items: center;
  background: var(--gc-teal-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 22px;
  border: 0;
  border-radius: var(--gc-radius-sm);
  cursor: pointer;
}

.gc .gc-btn-login:hover { background: var(--gc-teal-dark); color: #fff; text-decoration: none; }

/* ----- Hero ----- */
.gc-hero {
  background: var(--gc-surface);
  border-bottom: 1px solid var(--gc-border);
}

.gc-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding-block: clamp(32px, 4.5vw, 56px);
}

.gc-hero-pill { margin-bottom: 20px; }

.gc-hero h1 {
  margin: 0 0 16px;
  font-size: var(--gc-fs-h1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gc-hero-lead {
  margin: 0 0 16px;
  font-size: var(--gc-fs-lg);
  color: var(--gc-text-body);
  max-width: 52ch;
}

.gc-hero-schedule {
  margin: 0 0 24px;
  color: var(--gc-text-body);
  font-weight: 600;
}

.gc-callback {
  padding: 20px;
  border-radius: var(--gc-radius);
  background: var(--gc-teal-tint);
  container-type: inline-size;
}

.gc-callback h2 {
  margin: 0 0 14px;
  font-size: var(--gc-fs-h3);
}

.gc-callback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
  gap: 12px;
  align-items: center;
}

.gc-callback-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gc-callback-form input { min-height: 52px; }
.gc-callback-form .gc-btn { width: 100%; }
.gc .gc-callback-note { margin-top: 12px; font-size: var(--gc-fs-sm); }
.gc-secondary-link { display: inline-block; margin-top: 14px; text-decoration: underline !important; font-weight: 600; }

@container (max-width: 480px) {
  .gc-callback-form { grid-template-columns: 1fr; }
}

.gc-pains .gc-card h2 { margin: 0 0 8px; font-size: var(--gc-fs-h3); }

.gc-axes-card { max-width: 800px; margin-inline: auto; }
.gc-axes-svg { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; }
.gc-axis-line { stroke: var(--gc-text); stroke-width: 3; }
.gc-axis-arrow-head { fill: var(--gc-teal-deep); }
.gc-axis-divider { stroke: var(--gc-border-field); stroke-width: 2; stroke-dasharray: 5 7; }
.gc-quadrant-label, .gc-axis-label, .gc-course-arrow-label { font-family: Assistant, sans-serif; text-anchor: middle; direction: rtl; fill: var(--gc-text); }
.gc-quadrant-label { font-size: 30px; font-weight: 700; }
.gc-quadrant-label--highlight { fill: var(--gc-teal-deep); }
.gc-axis-label { font-size: 25px; font-weight: 700; }
.gc-course-arrow { stroke: var(--gc-teal-deep); stroke-width: 4; }
.gc-course-arrow-label { fill: var(--gc-teal-deep); font-size: 20px; font-weight: 700; }

.gc-skills { display: grid; gap: var(--gc-gap); }
.gc-skill { padding-block: 20px; }
.gc-skill summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gc-skill summary::-webkit-details-marker { display: none; }
.gc-skill-summary { display: grid; gap: 4px; }
.gc-skill-summary strong { font-size: var(--gc-fs-h3); }
.gc-skill-dates { color: var(--gc-teal-deep); font-weight: 700; }
.gc-skill-description { color: var(--gc-text-body); }
.gc-skill-expand { color: var(--gc-teal-deep); white-space: nowrap; font-weight: 700; }
.gc-skill-expand span { display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-inline-end: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform 0.2s; }
.gc-skill[open] .gc-skill-expand span { transform: rotate(225deg); }
.gc-skill-weeks { display: grid; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gc-border); }
.gc-skill-weeks .gc-week-body + .gc-week-body { padding-top: 20px; border-top: 1px solid var(--gc-border); }
.gc-section-cta { margin-top: 20px; }

.gc-week-timeline { margin: 0 0 20px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gc-gap); counter-reset: gc-stage; }
.gc-week-timeline li { counter-increment: gc-stage; }
.gc-week-timeline li::before { content: counter(gc-stage); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--gc-teal-tint); color: var(--gc-teal-deep); font-weight: 700; }
.gc-week-fact { margin: 0 0 6px; font-weight: 600; }

.gc .gc-payment-methods { margin: 0 0 4px; font-weight: 700; color: var(--gc-text); }
.gc .gc-payment-installments { margin: 0 0 20px; color: var(--gc-text-body); }
.gc-form-webinar { grid-column: 1 / -1; justify-self: center; margin-top: 0; }

.gc-sticky-bar { display: none; }

@media (max-width: 767px) {
  .gc { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .gc-header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
  .gc-header-logo { margin: 0; padding-block: 10px; }
  .gc-header-actions { grid-column: 2; grid-row: 1; padding: 0; }
  .gc-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; min-width: 0; overflow-x: auto; }
  .gc-nav a { flex: none; padding: 8px 12px; }
  .gc-hero-inner { padding-block: 24px 32px; }
  .gc-hero-pill { margin-bottom: 12px; }
  .gc-hero h1 { margin-bottom: 12px; }
  .gc-hero-lead { font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
  .gc-hero-schedule { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
  .gc-week-timeline { grid-template-columns: 1fr; }
  .gc-skill summary { align-items: flex-start; flex-direction: column; }
  .gc-sticky-bar { position: fixed; z-index: 100; inset: auto 0 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--gc-surface); box-shadow: 0 -2px 12px rgba(0,0,0,0.16); transform: translateY(110%); visibility: hidden; transition: transform 0.2s, visibility 0.2s; }
  .gc-sticky-visible .gc-sticky-bar { transform: translateY(0); visibility: visible; }
  .gc-sticky-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
  .gc-sticky-bar .gc-btn { width: 100%; padding: 9px 12px; }
  .gc-sticky-webinar { grid-column: 1 / -1; justify-self: center; font-size: var(--gc-fs-sm); text-decoration: underline !important; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-sticky-bar, .gc-skill-expand span { transition: none; }
}

.gc-video { overflow: hidden; padding: 0; }

.gc-video-frame {
  aspect-ratio: 16 / 9;
  background: var(--gc-text);
}

.gc-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gc-video-caption {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gc-video-caption span { font-size: var(--gc-fs-sm); color: var(--gc-text-muted); }

/* ----- Syllabus ----- */
.gc-week-body { min-width: 0; }
.gc-week-body > p { margin-bottom: 16px; }

/* ----- Audience ----- */
.gc .gc-card-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gc-border);
  font-weight: 600;
  color: var(--gc-text);
}

/* ----- Instructor ----- */
.gc-instructor {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gc-pad);
  align-items: flex-start;
}

.gc-instructor-photo {
  flex: 0 1 220px;
  border-radius: var(--gc-radius);
  overflow: hidden;
  background: var(--gc-surface-soft);
}

.gc-instructor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gc-instructor-body {
  flex: 1 1 380px;
  min-width: 0;
}

.gc-instructor-body p { max-width: 66ch; }
.gc-instructor-body p + p { margin-top: 14px; }

.gc-portfolio {
  flex: 1 1 100%;
  border-top: 1px solid var(--gc-border);
  padding-top: var(--gc-pad);
}

.gc-portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--gc-gap);
}

.gc-portfolio .gc-soft {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-portfolio-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-portfolio-name img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: none;
}

.gc-portfolio .gc-soft p { flex: 1; font-size: var(--gc-fs-sm); }
.gc-portfolio .gc-soft a { font-size: var(--gc-fs-sm); font-weight: 600; }

/* ----- Testimonial ----- */
.gc-testimonial { margin: 0; }

.gc-testimonial blockquote {
  margin: 0 0 16px;
  font-size: var(--gc-fs-lg);
  max-width: 75ch;
}

.gc-testimonial figcaption {
  font-size: var(--gc-fs-sm);
  font-weight: 600;
  color: var(--gc-text-muted);
}

/* ----- Pricing ----- */
.gc-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--gc-pad);
  align-items: center;
}

.gc-price {
  font-size: var(--gc-fs-h1);
  font-weight: 800;
  line-height: 1.1;
}

.gc .gc-price-sub {
  margin: 4px 0 20px;
  font-size: var(--gc-fs-lg);
}

.gc-pricing .gc-btn { margin-bottom: 20px; }
.gc-pricing .gc-soft { padding: 22px 24px; }

/* ----- FAQ ----- */
.gc-faq { display: grid; gap: 12px; }
.gc-faq details { padding-block: 16px; }
.gc-faq summary { cursor: pointer; font-weight: 700; }
.gc-faq details p { margin-top: 10px; max-width: 80ch; }

/* ----- Signup ----- */
.gc-signup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.gc .gc-signup-lead { margin-bottom: 16px; }

.gc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.gc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gc-field label {
  font-size: var(--gc-fs-sm);
  font-weight: 600;
  color: var(--gc-text-body);
}

.gc-field input {
  border: 1px solid var(--gc-border-field);
  border-radius: var(--gc-radius-sm);
  padding: 10px 13px;
  font-size: 16px;
  background: #fff;
  color: var(--gc-text);
  width: 100%;
}

.gc-field input:focus {
  outline: none;
  border-color: var(--gc-teal);
  box-shadow: 0 0 0 3px var(--gc-teal-tint);
}

.gc-form .gc-btn { grid-column: 1 / -1; }

.gc-form-note {
  grid-column: 1 / -1;
  font-size: var(--gc-fs-sm);
  color: var(--gc-text-muted);
  text-align: center;
}

/* ----- Footer ----- */
.gc-footer {
  background: var(--gc-surface);
  border-top: 1px solid var(--gc-border);
  font-size: 16px;
}

.gc-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-block: 40px;
}

.gc-footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.gc-footer-about {
  margin: 0;
  color: var(--gc-text-body);
  max-width: 46ch;
}

.gc-footer-about a { text-decoration: underline; }

.gc-footer-col b {
  display: block;
  margin-bottom: 12px;
}

.gc-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-footer-bottom { border-top: 1px solid var(--gc-border); }

.gc-footer-bottom .gc-wrap {
  padding-block: 18px;
  font-size: var(--gc-fs-sm);
  color: var(--gc-text-muted);
}

/* ----- Thank you ----- */
.gc-thanks {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) 24px;
  text-align: center;
}

.gc-thanks-card { padding: clamp(28px, 5vw, 48px); }

.gc-thanks h1 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 40px);
}

.gc-thanks p {
  margin: 0 0 28px;
  font-size: var(--gc-fs-lg);
  color: var(--gc-text-body);
}

html { scroll-behavior: smooth; }
