/* Asa homepage Option 2 section — scoped .ag- rules folded from the design pack.
   僅預覽，上線需用戶另行批准.
   Tokens are scoped to .ag-sec / .ag-preview-banner so they do not replace site tokens.
   Mock toolbar, placement rails, and global resets from ag.css are omitted.
   Light theme: lime is decorative only; primary CTA uses #0F5C2E / white.
*/

.ag-sec, .ag-preview-banner {
  --ag-bg: #0b0c0e;
  --ag-card: #121316;
  --ag-bd: #2a2c31;
  --ag-bd2: #1f2125;
  --ag-ctl-bd: #6b7078;
  --ag-tx: #eef0f2;
  --ag-tx2: #9a9ea6;
  --ag-tx3: #cfd2d6;
  --ag-acc: #B6FF2E;
  --ag-acc-tx: #B6FF2E;
  --ag-cta-bg: #B6FF2E;
  --ag-cta-tx: #0b0c0e;
  --ag-cta-hover: #c8ff5c;
  --ag-ic-bg: rgba(182, 255, 46, .1);
  --ag-ic-bd: rgba(182, 255, 46, .28);
  --ag-ic-tx: #B6FF2E;
  --ag-card-bd: rgba(182, 255, 46, .10);
  --ag-focus: #B6FF2E;
  --ag-bar: #B6FF2E;
  --ag-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --ag-banner-bg: #1a1b1f;
  --ag-banner-tx: #cfd2d6;
  --ag-chip-bg: #16171a;
  --ag-fig-bd: #1f2125;
}

html[data-theme="light"] .ag-sec,
html[data-theme="light"] .ag-preview-banner {
  --ag-bg: #F7F6F2;
  --ag-card: #FFFFFF;
  --ag-bd: #DDD9D0;
  --ag-bd2: #DDD9D0;
  --ag-ctl-bd: #8F8A7F;
  --ag-tx: #14161A;
  --ag-tx2: #4A4F57;
  --ag-tx3: #5C6169;
  --ag-acc: #B6FF2E;
  --ag-acc-tx: #0F5C2E;
  --ag-cta-bg: #0F5C2E;
  --ag-cta-tx: #FFFFFF;
  --ag-cta-hover: #0A4723;
  --ag-ic-bg: #E4EFE7;
  --ag-ic-bd: #B9D3C1;
  --ag-ic-tx: #0F5C2E;
  --ag-card-bd: #DDD9D0;
  --ag-focus: #0F5C2E;
  --ag-bar: #B6FF2E;
  --ag-shadow: 0 16px 40px rgba(20, 40, 30, .08);
  --ag-banner-bg: #EEEDE8;
  --ag-banner-tx: #14161A;
  --ag-chip-bg: #FFFFFF;
  --ag-fig-bd: #DDD9D0;
}

/* Site has `section{padding:110px 0}` and `h2{margin-bottom:56px;max-width:760px}`.
   Keep the Option 2 spacing from the design pack. */
.ag-sec { background: var(--ag-bg); color: var(--ag-tx); }
.ag-h2 { margin-bottom: 0; }
.ag-sec img { max-width: 100%; display: block; }
.ag-sec :focus-visible,
.ag-preview-banner :focus-visible {
  outline: 2px solid var(--ag-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
html[lang="zh-Hant"] .ag-h2 {
  font-family: "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
}

/* Preview-only site banner (not the mock toolbar / placement rails). */
.ag-preview-banner {
  background: var(--ag-banner-bg);
  color: var(--ag-banner-tx);
  text-align: center;
  font: 600 13px/1.45 "Noto Sans TC", "Noto Sans CJK TC", Inter, sans-serif;
  padding: 10px 16px;
  border-bottom: 1px dashed var(--ag-ctl-bd);
  letter-spacing: .02em;
  position: relative;
  z-index: 21;
}
.ag-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.ag-ic { width: 15px; height: 15px; }

/* ----- section ----- */
.ag-sec { padding: 96px 0 88px; }

.ag-eye {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
  color: var(--ag-acc-tx);
}

html[lang="zh-Hant"] .ag-eye { letter-spacing: .16em; text-transform: none; }

.ag-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Michroma is wide: the English H2 needs the full 1200px column
   to sit on two lines at display size. Body follows in a readable measure. */
.ag-h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  max-width: none;
  color: var(--ag-tx);
}

html[lang="zh-Hant"] .ag-h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.ag-intro-r { max-width: 720px; }

.ag-h2a, .ag-h2b { display: block; }

.ag-sub {
  color: var(--ag-tx2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.ag-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ag-tx3);
  font-size: 15.5px;
  line-height: 1.75;
}

html[data-theme="light"] .ag-body { color: var(--ag-tx2); }

/* illustration */
.ag-fig {
  margin: 56px 0 0;
  background: #0b0c0e;
  border: 1px solid var(--ag-fig-bd);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ag-shadow);
}

.ag-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* cards */
.ag-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.ag-card {
  background: var(--ag-card);
  border: 1px solid var(--ag-card-bd);
  border-radius: 16px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  position: relative;
}

html[data-theme="light"] .ag-card {
  box-shadow: var(--ag-shadow);
  border-color: var(--ag-bd);
}

html[data-theme="light"] .ag-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--ag-bar);
  border-radius: 16px 16px 0 0;
}

.ag-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ag-ic-bg);
  border: 1px solid var(--ag-ic-bd);
  color: var(--ag-ic-tx);
  display: grid;
  place-items: center;
  flex: none;
}

.ag-ico .ag-ic, .ag-ico img, .ag-ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.ag-card h3 {
  font-family: Inter, "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ag-tx);
}

html[lang="zh-Hant"] .ag-card h3 { font-weight: 500; letter-spacing: .02em; }

.ag-card p {
  color: var(--ag-tx2);
  font-size: 14.5px;
  line-height: 1.7;
}

/* example questions — visually secondary, labelled as use cases */
.ag-ex {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--ag-bd2);
}

.ag-ex-h {
  font-family: Inter, "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ag-tx);
  margin-bottom: 8px;
}

html[lang="zh-Hant"] .ag-ex-h {
  letter-spacing: .12em;
  text-transform: none;
  font-weight: 500;
}

.ag-ex-cap {
  font-size: 13.5px;
  color: var(--ag-tx2);
  line-height: 1.6;
  max-width: 52rem;
  margin-bottom: 24px;
}

.ag-ex-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ag-ex-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 28px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--ag-bd2);
}

.ag-ex-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

.ag-ex-ind {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ag-tx3);
  line-height: 1.4;
}

html[data-theme="light"] .ag-ex-ind { color: var(--ag-tx); }

.ag-ex-note {
  font-size: 12px;
  color: var(--ag-tx2);
  line-height: 1.45;
}

.ag-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px 8px 12px;
  border-radius: 99px;
  background: var(--ag-chip-bg);
  border: 1px solid var(--ag-bd2);
  color: var(--ag-tx3);
  font-size: 13.5px;
  line-height: 1.4;
}

html[data-theme="light"] .ag-chip {
  border-color: var(--ag-bd);
  color: var(--ag-tx);
  box-shadow: 0 1px 2px rgba(20, 40, 30, .04);
}

.ag-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ag-bar);
  flex: none;
  opacity: .85;
}

/* CTAs */
.ag-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 99px;
  font: 600 15px/1.3 Inter, "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  background: var(--ag-cta-bg);
  color: var(--ag-cta-tx);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.ag-btn:hover { background: var(--ag-cta-hover); }

.ag-btn.out {
  background: transparent;
  color: var(--ag-tx);
  border-color: var(--ag-ctl-bd);
}

.ag-btn.out:hover {
  border-color: var(--ag-acc-tx);
  background: transparent;
}

/* responsive */
@media (max-width: 1024px) {
  .ag-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .ag-sec { padding: 64px 0 56px; }
  .ag-intro { gap: 22px; }
  html[lang="zh-Hant"] .ag-h2 { max-width: none; }
  .ag-fig { margin-top: 36px; }
  .ag-cards { margin-top: 36px; }
  .ag-ex { margin-top: 48px; }
  .ag-ex-row { grid-template-columns: 1fr; gap: 8px; }
  .ag-place, .ag-wrap { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 700px) {
  .ag-fig img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .ag-cards { grid-template-columns: 1fr; gap: 16px; }
  .ag-card { padding: 24px 20px; }
  .ag-ctas { flex-direction: column; align-items: stretch; }
  .ag-btn { width: 100%; }
  .ag-bar-kicker { letter-spacing: .04em; }
  .ag-seg button { padding: 0 9px; }
  .ag-theme button span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ag-theme button { min-width: 44px; }
}


}
