/* Shared visual treatment for the public feature guide, course case and plans. */
.cl-site.emerald-site {
  --ink: #132b22;
  --muted: #4b6054;
  --paper: #f8f8ef;
  --line: #d4ded0;
  --dark: #102c21;
  --lime: #dcfa90;
  --width: 1232px;
  --gutter: clamp(20px, 5vw, 76px);
  --night: #081a13;
  --hero: #061610;
  --on-dark: #f6f9ef;
  --on-dark-muted: #c9d9ce;
  --cl-border: #d4ded0;
  --cl-soft: #eaf0e3;
  --cl-muted: #4b6054;
  --cl-dark: #102c21;
  --cl-paper: #fffef7;
  --cl-accent: #dcfa90;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.emerald-site .wrap { width: min(var(--width), calc(100% - var(--gutter) * 2)); }
.cl-site.emerald-site main [id] { scroll-margin-top: 0; }
.emerald-site :is(.pg-guide, .pg-walk, .pg-plan-route) {
  --pg-ink: var(--ink);
  --pg-muted: var(--muted);
  --pg-line: var(--line);
  --pg-wash: #eaf0e3;
  --pg-paper: var(--paper);
}
.emerald-site .site-header { background: var(--night); color: var(--on-dark); border-color: #294336; }
.emerald-site .header-inner { min-height: 74px; gap: clamp(14px, 2.2vw, 32px); }
.emerald-site .brand-mark { background: var(--lime); color: var(--night); border-radius: 10px; }
.emerald-site .brand b { font-size: 18px; }
.emerald-site .brand small { color: #bfd1c3; }
.emerald-site .site-header :is(.desktop-nav a, .login-link) { color: var(--on-dark-muted); }
.emerald-site .site-header :is(.desktop-nav a, .login-link):hover,
.emerald-site .site-header .desktop-nav a[aria-current="page"] { color: var(--lime); }
.emerald-site .site-header .header-actions .button {
  min-height: 44px;
  padding-inline: 13px;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid #627f6b;
  border-radius: 8px;
}
.emerald-site .site-header .header-actions .button:hover { background: #224333; color: var(--lime); }
.emerald-site .mobile-menu summary { min-width: 48px; border: 1px solid #627f6b; border-radius: 8px; }
.emerald-site .mobile-menu nav { background: #123123; color: var(--on-dark); border-color: #486957; }
.emerald-site .mobile-menu nav a { border-color: #3a5647; }
.emerald-site .mobile-menu nav a:hover,
.emerald-site .mobile-menu nav a[aria-current="page"] { color: var(--lime); }
.emerald-site :is(.site-header, .page-hero, .closing, .site-footer) :focus-visible { outline-color: var(--lime); }

.cl-site.emerald-site .page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(55px, 6.4vw, 91px) 0;
  border: 0;
  background: var(--hero);
  color: var(--on-dark);
}
.cl-site.emerald-site .page-hero .breadcrumb { margin-bottom: 23px; color: var(--on-dark-muted); }
.emerald-site .page-hero :is(.eyebrow, .emerald-hero-accent) { color: var(--lime); }
.cl-site.emerald-site .page-hero h1 {
  max-width: 790px;
  margin-top: 14px;
  font-size: clamp(36px, 4.15vw, 61px);
  letter-spacing: -.055em;
  line-height: 1.15;
  text-wrap: pretty;
}
.cl-site.emerald-site .page-hero h1 br { display: initial; }
.cl-site.emerald-site .page-hero .lead {
  max-width: 570px;
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 17px;
  line-height: 1.78;
}
.cl-site.emerald-site .page-hero .actions { margin-top: 23px; gap: 7px 22px; }
.emerald-site :is(.page-hero, .closing, .mobile-bar) .button {
  color: #172a1c;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}
.emerald-site :is(.page-hero, .closing, .mobile-bar) .button:hover { background: #e9ffb5; border-color: #e9ffb5; }
.emerald-site :is(.page-hero, .closing) .text-link { color: var(--on-dark); }
.emerald-site :is(.page-hero, .closing) .text-link:hover { color: var(--lime); }

:is(.emerald-case, .emerald-plans) .page-hero { min-height: 477px; display: grid; align-items: center; overflow: hidden; }
:is(.emerald-case, .emerald-plans) .page-hero > .wrap { position: relative; }
.emerald-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(78vw, 1300px);
}
.emerald-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.emerald-hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--hero), #061610d4 26%, transparent 67%),
    linear-gradient(0deg, #06161096, transparent 31%);
}
.emerald-case .emerald-hero-art img { object-position: center 65%; }
.emerald-plans .emerald-hero-art img { object-position: center 48%; }

.cl-site.emerald-site .cl-closing {
  padding-block: clamp(48px, 6.5vw, 86px);
  border-color: #2f4d3d;
  background: radial-gradient(ellipse at 90% 105%, #2a553a, #10291e 62%);
}
.cl-site.emerald-site .cl-closing h2 { font-size: clamp(31px, 3.6vw, 50px); line-height: 1.2; letter-spacing: -.05em; }
.emerald-site .site-footer { background: var(--night); color: #cfddd2; border-color: #304c3c; }
.emerald-site .site-footer :is(.footer-bottom, .account-login) { border-color: #395746; }
.emerald-site .site-footer a:hover { color: var(--lime); }

/* Features */
.emerald-features .pg-guide-opening {
  color: var(--on-dark);
  background-color: var(--hero);
  background-image: radial-gradient(ellipse at 84% 39%, #254934, transparent 64%);
  border-color: #294336;
}
.cl-site.emerald-features .pg-guide-opening .page-hero { background: transparent; }
.emerald-features .pg-guide-opening .pg-index-area {
  padding: clamp(15px, 2.25vw, 28px);
  border: 1px solid #577561;
  border-radius: 17px;
  background: linear-gradient(147deg, #254936, #132e23);
  box-shadow: 0 21px 42px #05130d65;
}
.emerald-features .pg-guide-opening .pg-index-area .eyebrow { color: #e2f5d0; }
.emerald-features .pg-index ol { gap: 8px; }
.emerald-features .pg-index a {
  min-width: 0;
  padding: 10px 12px;
  color: var(--on-dark);
  background: #153427;
  border-color: #4a6c56;
  border-radius: 8px;
}
.emerald-features .pg-index a:hover { background: #2c503b; border-color: #a0b97a; }
.emerald-features .pg-index a span { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.emerald-features .pg-index a:focus-visible { outline-color: var(--lime); }
.emerald-features .pg-chapter { padding-block: clamp(53px, 7vw, 96px); background: var(--paper); }
.emerald-features .pg-chapter:nth-of-type(even) { background: #edf2e7; }
.emerald-features .pg-chapter-head { max-width: 60rem; margin-bottom: 1.25rem; }
.emerald-features .pg-chapter h2 {
  max-width: 24em;
  font-size: clamp(30px, 3.55vw, 50px);
  line-height: 1.17;
  letter-spacing: -.052em;
}
.emerald-features .pg-chapter-head > p:last-child { font-size: 17px; line-height: 1.75; }
.emerald-features .pg-chapter > .wrap > .pg-rows {
  margin-block: 1rem;
  padding: 0 clamp(13px, 2.1vw, 25px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffef7;
}
.emerald-features .pg-chapter > .wrap > .pg-rows > div:first-child { border-block-start: 0; }
.emerald-features .pg-screen { border-color: #cad9cc; border-radius: 13px; box-shadow: 0 10px 27px #203b2510; background: #fffef9; }
.emerald-features .pg-screen figcaption { padding: 14px 16px; }
.emerald-features .pg-note { padding: 16px 18px; background: #e4eddb; border-radius: 0 9px 9px 0; border-inline-start-color: #538160; }
.emerald-features .pg-details { border-color: #cbd9cc; border-radius: 11px; background: #fffef8; }
.emerald-features .pg-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px 10px 16px;
  list-style: none;
}
.emerald-features .pg-details > summary::-webkit-details-marker { display: none; }
.emerald-features .pg-details > summary::after {
  display: grid;
  flex: 0 0 27px;
  height: 27px;
  place-items: center;
  content: "+";
  border-radius: 50%;
  background: #e9f0e0;
  color: #2c593e;
  font: 500 19px/1 system-ui, sans-serif;
}
.emerald-features .pg-details[open] > summary { background: #eff4e8; border-radius: 10px 10px 0 0; }
.emerald-features .pg-details[open] > summary::after { content: "−"; }
.emerald-features .pg-continue { margin-top: 20px; gap: 3px 18px; }
.emerald-features .pg-next { background: #e2edda; }

/* Course enrollment case */
.emerald-case .pg-journey,
.emerald-case .pg-industry { padding-block: clamp(56px, 7vw, 96px); }
.emerald-case .pg-journey > .wrap > h2,
.emerald-case .pg-industry h2 { font-size: clamp(31px, 3.55vw, 50px); line-height: 1.18; letter-spacing: -.05em; }
.emerald-case .pg-journey-intro { font-size: 17px; }
.emerald-case .pg-journey .pg-index ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.emerald-case .pg-journey .pg-index a {
  height: 100%;
  min-height: 57px;
  border-color: #52725e;
  background: #173a2a;
  color: var(--on-dark);
  line-height: 1.35;
}
.emerald-case .pg-journey .pg-index a:hover { background: #27553e; }
.emerald-case .pg-journey .pg-index a span { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.emerald-case .pg-journey-list { display: grid; gap: 15px; margin-top: 26px; }
.emerald-case .pg-stage {
  padding: clamp(19px, 3.3vw, 43px);
  border: 1px solid #d0ddce;
  border-radius: 17px;
  background: #fffef7;
}
.emerald-case .pg-stage:nth-child(even) { background: #eef4e9; }
.emerald-case .pg-stage-copy h3 { font-size: clamp(25px, 2.9vw, 39px); letter-spacing: -.045em; }
.emerald-case .pg-ad-example { background: linear-gradient(140deg, #25503a, #123326); }
.emerald-case .pg-tour-card,
.emerald-case .pg-industry-grid article { border-radius: 12px; box-shadow: 0 8px 20px #1f3e2410; background: #fffef8; }
.emerald-case .pg-tour-card h5 { background: #e6efdf; }
.emerald-case .pg-industry { background: #eaf0e3; }
.emerald-case .data-walkthrough { background: #f4f6ed; border-color: #d6e1d3; }
.emerald-case .data-funnel-summary { border-radius: 14px; }
.emerald-case .data-funnel-summary > .data-metric:last-child { background: #173b2b; }
.emerald-case .data-funnel-summary > .data-metric:last-child b { color: var(--lime); }
.emerald-case .data-funnel-summary > .data-metric:last-child span { color: #d7e9d7; }
.emerald-case .data-demo-step {
  margin: 0 0 16px;
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid #d2ded1;
  border-radius: 15px;
  background: #fffef8;
}
.emerald-case .data-step-heading { gap: 14px; }
.emerald-case .data-step-heading > span { background: #dcebd4; border-color: #c7d8bc; border-radius: 8px; color: #235939; }
.emerald-case .data-step-heading h3 { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.26; }
.emerald-case .data-chapter-nav { margin-bottom: 23px; }

/* Plans */
.emerald-plans .pg-offer-choices { gap: 10px; }
.emerald-plans .pg-offer-choices a {
  min-width: 0;
  padding: clamp(12px, 1.6vw, 19px);
  border-radius: 11px;
  background: #fffef7;
}
.emerald-plans .pg-offer-choices a:nth-child(2) { border-color: #98b89a; background: #e4efdc; }
.emerald-plans .pg-offer-choices a:hover { border-color: #739a79; background: #dcebd4; }
.emerald-plans .pg-offer-cost { white-space: nowrap; color: #2c5f43; }
.emerald-plans .cl-offers { gap: clamp(13px, 2.1vw, 25px); }
.emerald-plans .cl-offer {
  min-width: 0;
  padding: clamp(18px, 3vw, 40px);
  border-radius: 16px;
  background: #fffef8;
  box-shadow: 0 13px 32px #193b2510;
}
.emerald-plans .cl-offer-full { border-color: #a2bea4; background: linear-gradient(155deg, #edf4e5, #e6efdf); }
.emerald-plans .cl-price {
  margin-block: 10px;
  font-size: clamp(39px, 4.3vw, 63px);
  line-height: 1.15;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.emerald-plans .cl-price > span,
.emerald-plans .cl-price > small { font-size: 14px; }
.emerald-plans .cl-offer > ul { line-height: 1.8; }
.emerald-plans .plan-consult-message { background: #e9f0e2; }
.emerald-plans .cl-offer-full .plan-consult-message { background: #dcead3; }
.emerald-plans .cl-offer .plan-consult-actions > .button { margin: 0; }
.emerald-plans .plan-consult-note { font-size: .89rem; }
.emerald-plans #plan-help-consult {
  padding: clamp(17px, 3vw, 30px);
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.emerald-plans .section.dark { background: radial-gradient(ellipse at 20% 10%, #28533b, #102b20 60%); }
.emerald-plans .target-number { color: var(--lime); font-variant-numeric: tabular-nums; }
.emerald-plans .calculator {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 28px);
  background: #f7faef;
  color: var(--ink);
  border-color: #d2e1cf;
  border-radius: 15px;
}
.emerald-plans .calculator output { color: #255a3c; }
.emerald-plans .calculator input { min-height: 44px; margin-block: 9px; accent-color: #3c744e; }
.emerald-plans .calculator small { color: var(--muted); font-size: .87rem; }
.emerald-plans .calc-equation { border-color: #cbd9c8; }
.emerald-plans .calc-equation b { color: var(--ink); }
.emerald-plans .guarantee-seal {
  border-color: #527c5a;
  background: radial-gradient(ellipse at 65% 20%, #315e40, #122f23 70%);
  color: #e8f2e3;
  box-shadow: 0 16px 37px #173c2426;
}
.emerald-plans .guarantee-seal b { color: var(--lime); }
.emerald-plans .guarantee-seal::before { border-color: #789d77; }

@media (min-width: 1024px) {
  .emerald-features .pg-guide-opening {
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    min-height: 493px;
    padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2));
  }
  .emerald-features .pg-guide-opening .pg-index-area { width: 100%; }
  .emerald-features #ai-boss > .wrap {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: 0 23px;
  }
  .emerald-features #ai-boss > .wrap > :is(.pg-chapter-head, .pg-note, .pg-continue) { grid-column: 1 / -1; }
  .emerald-features #ai-boss > .wrap > .pg-screens { margin-block: 1rem; }
}
@media (max-width: 1023px) {
  .emerald-features .pg-guide-opening { padding-bottom: 24px; }
  .cl-site.emerald-features .pg-guide-opening .page-hero { padding-bottom: 26px; }
  .emerald-features .pg-guide-opening .pg-index-area { margin-inline: auto; }
  .emerald-site .emerald-hero-art { width: 86vw; }
  .emerald-site .emerald-hero-art::after {
    background: linear-gradient(90deg, var(--hero), #061610dd 29%, transparent 75%), linear-gradient(0deg, #06161096, transparent 31%);
  }
}
@media (max-width: 760px) {
  .cl-site.emerald-site { --gutter: clamp(16px, 5vw, 28px); }
  .emerald-site .header-inner { min-height: 67px; gap: 8px; }
  .emerald-site .brand b { font-size: 16px; }
  .cl-site.emerald-site .page-hero { padding-block: 31px 27px; }
  .cl-site.emerald-site .page-hero .breadcrumb { margin-bottom: 16px; }
  .cl-site.emerald-site .page-hero h1 { max-width: 100%; font-size: clamp(31px, 6.6vw, 43px); line-height: 1.19; }
  .cl-site.emerald-site .page-hero .lead { margin-top: 14px; font-size: 16px; }
  .cl-site.emerald-site .page-hero .actions { margin-top: 16px; gap: 4px 13px; }
  .emerald-site .page-hero .actions :is(.button, .text-link) { min-height: 44px; }
  :is(.emerald-case, .emerald-plans) .page-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .cl-site:is(.emerald-case, .emerald-plans) .page-hero { padding-bottom: 0; }
  .emerald-site .emerald-hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: -5px;
    aspect-ratio: 1.75;
  }
  .emerald-site .emerald-hero-art img { object-position: 91% 61%; }
  .emerald-site .emerald-hero-art::after {
    background: linear-gradient(180deg, var(--hero), #06161028 26%, transparent 77%, #06161088);
  }
  .emerald-features .pg-guide-opening .pg-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emerald-features .pg-chapter-head > p:last-child,
  .emerald-case .pg-journey-intro { font-size: 16px; }
  .emerald-case .pg-journey .pg-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emerald-case .pg-journey .pg-index a { min-height: 49px; }
  .emerald-case .pg-stage,
  .emerald-case .data-demo-step { border-radius: 12px; }
  .emerald-site .mobile-bar { border-color: #4a6655; background: #102b20; color: var(--on-dark); padding-inline: var(--gutter); }
  .emerald-site .mobile-bar > a:first-child { white-space: normal; line-height: 1.32; }
  .emerald-site .mobile-bar .button { padding-inline: 10px; }
}
@media (max-width: 450px) {
  .emerald-site .header-actions .login-link { padding-inline: 2px; font-size: 13px; }
  .emerald-site .brand small { font-size: 8px; letter-spacing: .08em; }
  .emerald-features .pg-guide-opening .pg-index a { padding-inline: 8px; line-height: 1.38; }
  .emerald-plans .pg-offer-choices a { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .emerald-plans .guarantee-terms { gap: 8px; }
  .emerald-case .data-step-heading { gap: 9px; }
  .emerald-case .data-source-metrics .data-metric { padding: 13px 7px; }
}
