:root {
  color-scheme: light;
  --navy: #06346b;
  --ink: #102641;
  --pale: #e1f0fe;
  --side: clamp(16px, 3vw, 36px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; font: 1rem/1.6 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; color: var(--ink); }
img { display: block; width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #173e82; outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }

.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 8px; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 3; background: white; }
.nav-wrap { width: 93%; margin: auto; display: flex; align-items: center; justify-content: space-between; min-height: clamp(68px, 6.4vw, 124px); gap: 18px; }
.brand { display: block; width: clamp(145px, 19.05vw, 366px); flex: 0 0 auto; }
#site-nav { display: flex; gap: clamp(12px, 2.4vw, 46px); align-items: center; }
#site-nav a { text-decoration: none; font-weight: 700; }
#site-nav a:hover:not(.cta) { text-decoration: underline; }

.menu { display: none; min-height: 44px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); background: white; padding: 0 12px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55em 1.35em; border-radius: 99px; color: white; background: var(--navy); font-weight: 800; text-decoration: none; text-align: center; line-height: 1.25; }
.cta:hover { background-color: #0f4c90; }
.cta-light { background: white; color: var(--navy); }
.cta-light:hover { background: #e7f5ff; }

.hero-inner, .section, .download-zone { position: relative; }
picture { display: block; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.section-bg img { width: 100%; height: 100%; object-fit: fill; }
.hero-actions { display: flex; align-items: center; gap: clamp(14px, 3.3vw, 64px); }
.hero-actions > a:not(.cta) { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; color: #082f5c; font-weight: 800; text-decoration: underline; }
.cards { display: grid; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.features dt { font-weight: 700; }

#survey-embed iframe { display: block; width: 100%; height: var(--frame-height, 600px); border: 1px solid #d5dfe8; border-radius: 8px; }
.survey-link { padding-top: 5px; font-size: .875rem; }
.floating { position: fixed; z-index: 2; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.site-footer .brand { width: clamp(155px, 24.1vw, 462px); }

@media (min-width: 861px) {
  html { scroll-padding-top: clamp(68px, 6.4vw, 124px); }
  .floating { display: none; }
  .copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .kv-art { display: block; }
  .hero-actions { position: absolute; left: 3.5%; top: 72%; }
  .hero-actions .cta, .section-cta { min-height: max(44px, 4.35vw); font-size: clamp(15px, 1.6vw, 30px); }
  .hero-actions > a:not(.cta) { font-size: clamp(14px, 1.34vw, 26px); }
  #site-nav { font-size: clamp(14px, 1.1vw, 21px); }

  .pain { aspect-ratio: 1920 / 761; min-height: 300px; }
  .challenges { aspect-ratio: 1920 / 570; min-height: 235px; }
  .guide { aspect-ratio: 1920 / 1051; }
  .steps { aspect-ratio: 1920 / 1034; }
  .section .title { position: absolute; top: var(--title-top); left: 50%; width: var(--title-width); transform: translateX(-50%); }
  .pain { --title-top: 13.6%; --title-width: 41%; }
  .challenges { --title-top: 14.1%; --title-width: 38.13%; }
  .guide { --title-top: 7.3%; --title-width: 32.97%; }
  .steps { --title-top: 1.4%; --title-width: 48.54%; }

  .cards { position: absolute; left: 3.5%; right: 3.5%; top: var(--cards-top); grid-auto-flow: column; gap: var(--cards-gap); }
  .six { --cards-top: 32%; --cards-gap: 1.5vw; }
  .three { --cards-top: 35.6%; --cards-gap: 2.35vw; }
  .five { --cards-top: 13.4%; --cards-gap: 1.3vw; }
  .section-cta { position: absolute; top: 77%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .guide-panel .book { position: absolute; top: 16.8%; left: 12%; width: 28.39%; }
  .guide-panel > div:last-child { position: absolute; top: 31.5%; left: 55.5%; width: 33.96%; }

  .download-zone { aspect-ratio: 1920 / 1171; min-height: 520px; }
  .download { position: absolute; top: 24.9%; left: 7.4%; right: 7.4%; }
  .download-panel { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 57fr); gap: 4%; }
  .download-info { align-self: start; margin-top: max(0px, .9vw); }
  .form-area { min-width: 0; --frame-height: clamp(275px, 30vw, 600px); }
  .site-footer { position: absolute; bottom: 6.6%; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 860px) {
  html { --mobile-header-height: 48px; scroll-padding-top: var(--mobile-header-height); }
  main { max-width: 640px; margin-inline: auto; container-type: inline-size; }
  .copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .nav-wrap { width: 100%; min-height: var(--mobile-header-height); padding-inline: 5% 3.4%; }
  .site-header .brand { width: clamp(120px, 36.2vw, 172px); }
  .menu { display: grid; position: relative; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; }
  .menu::before, .menu::after, .menu span { content: ''; position: absolute; width: 27px; height: 3px; background: currentColor; }
  .menu::before { transform: translateY(-7px); }
  .menu::after { transform: translateY(7px); }
  .menu[aria-expanded="true"]::before { transform: rotate(45deg); }
  .menu[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .menu[aria-expanded="true"] span { visibility: hidden; }

  #site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100vh - var(--mobile-header-height));
    height: calc(100dvh - var(--mobile-header-height));
    overflow: auto;
    overscroll-behavior: contain;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #bdcbda;
  }

  .menu:not([hidden])[aria-expanded="true"] + #site-nav { display: flex; }
  #site-nav a { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; min-height: 48px; padding: 8px 5.3%; border-bottom: 1px solid #bdcbda; border-radius: 0; background: white; color: var(--navy); font-size: 14px; font-weight: 500; text-align: start; }

  .hero-actions { position: absolute; inset: auto 3% max(10px, calc(6.25cqw - 7px)) 3%; justify-content: center; gap: clamp(14px, 5.6cqw, 32px); font-size: clamp(12px, 3.1cqw, 18px); white-space: nowrap; }
  .hero-actions .cta-light { position: relative; isolation: isolate; min-width: 33.33cqw; padding-inline: 12px; background: transparent; }
  .hero-actions .cta-light::before { content: ''; position: absolute; z-index: -1; inset: 7px 0; border-radius: 24px; background: white; }
  .hero-actions .cta-light:hover::before { background: #e7f5ff; }
  .hero-actions > a:not(.cta) { color: white; font-size: clamp(11px, 2.6cqw, 16px); text-decoration: none; text-shadow: 0 1px 3px #06346b, 0 0 2px #06346b; }
  .hero-actions > a:not(.cta) span { width: .62em; height: .62em; font-size: inherit; color: transparent; line-height: 0; border-top: 1.5px solid white; border-right: 1.5px solid white; transform: rotate(45deg); text-shadow: none; }

  .pain { min-height: max(138.27cqw, calc(128.6cqw + 44px)); --title-top: 5.2cqw; --title-width: 62.93%; }
  .challenges { aspect-ratio: 750 / 796; --title-top: 7.2cqw; --title-width: 58.53%; }
  .guide { aspect-ratio: 750 / 1208; --title-top: 7.2cqw; --title-width: 50.67%; }
  .steps { aspect-ratio: 750 / 2988; --title-top: 4.2cqw; --title-width: 76.13%; }
  .section .title { position: absolute; top: var(--title-top); left: 50%; width: var(--title-width); transform: translateX(-50%); }

  .cards { position: absolute; top: var(--cards-top); left: 50%; width: var(--cards-width); transform: translateX(-50%); }
  .six { --cards-top: 16.5cqw; --cards-width: 76%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.65cqw; }
  .three { --cards-top: 17.2cqw; --cards-width: 78.8%; grid-template-columns: minmax(0, 1fr); gap: 2.9cqw; }
  .five { --cards-top: 18.4cqw; --cards-width: 76.13%; grid-template-columns: minmax(0, 1fr); gap: 4.65cqw; }
  .section-cta { position: absolute; bottom: 3cqw; left: 50%; width: 76%; transform: translateX(-50%); font-size: clamp(13px, 3.6cqw, 18px); }
  .guide-panel .book { position: absolute; top: 18.5cqw; left: 50%; width: 38.93%; transform: translateX(-50%); }
  .guide-panel > div:last-child { position: absolute; top: 86cqw; left: 50%; width: 66.8%; transform: translateX(-50%); }

  .download-zone { background: #48c9eb; }
  #download:focus { outline: none; }
  .download { padding-block: 13.5cqw clamp(20px, 7cqw, 32px); }
  .download-panel { width: 81.25%; margin-inline: auto; }
  .download-info { width: 93.85%; margin: 0 auto 7cqw; }

  .form-area {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgb(6 52 107 / 12%);
  }

  #survey-embed iframe {
    height: clamp(580px, 115cqw, 720px);
    border: 0;
    border-radius: 0;
  }

  .survey-link { padding: 6px 12px 10px; font-size: .75rem; }

  .site-footer {
    position: relative;
    z-index: 1;
    display: grid;
    justify-content: center;
    padding: 0 16px clamp(18px, 5cqw, 28px);
  }

  .site-footer .brand { width: clamp(142px, 46.5cqw, 225px); }
  .floating.cta { position: fixed; inset-inline: 0; bottom: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}