:root {
  --forest-950: #0c291a;
  --forest-900: #123822;
  --forest-800: #184b2e;
  --forest-700: #2e6545;
  --sage-500: #71896c;
  --sage-300: #a9b99d;
  --sage-100: #e7eee0;
  --cream-50: #fffdf8;
  --cream-100: #fbf7ec;
  --cream-200: #f0e7d2;
  --terracotta-700: #923719;
  --terracotta-600: #a9401d;
  --gold-500: #c59c56;
  --ink: #183127;
  --ink-muted: #526259;
  --white: #ffffff;
  --border: rgba(24, 75, 46, 0.16);
  --shadow-sm: 0 10px 30px rgba(19, 56, 34, 0.08);
  --shadow-lg: 0 24px 64px rgba(9, 39, 23, 0.2);
  --content: 1160px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--cream-100);
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 88px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 5%, rgba(169, 185, 157, 0.28), transparent 28rem),
    var(--cream-100);
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #edb85d;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--forest-950);
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.notice-bar {
  position: relative;
  z-index: 10;
  color: #f9f2df;
  background: var(--forest-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding-block: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.notice-inner span + span::before {
  content: "•";
  margin-right: 16px;
  color: var(--gold-500);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(880px, calc(100svh - 40px));
  padding-block: 64px 72px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 156, 86, 0.23), transparent 24rem),
    radial-gradient(circle at 8% 90%, rgba(113, 137, 108, 0.26), transparent 28rem),
    linear-gradient(145deg, var(--forest-950), var(--forest-800));
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(240, 231, 210, 0.14);
  border-radius: 50%;
}

.hero::before {
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
}

.hero::after {
  bottom: -210px;
  left: -160px;
  width: 430px;
  height: 430px;
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: start;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #466847;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero .eyebrow,
.claim-panel .eyebrow,
.daily-panel .eyebrow {
  color: #f1d59e;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  line-height: 1.22;
}

h1 {
  max-width: 13.5em;
  margin: 0;
  font-size: clamp(38px, 9vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 42rem;
  margin: 26px 0 30px;
  color: #e8eee7;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.75;
}

.cta-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  background: var(--terracotta-600);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(67, 20, 8, 0.28);
  cursor: pointer;
  animation: cta-gentle-float 1.6s ease-in-out infinite;
  transition:
    background-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}
@keyframes cta-gentle-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

.cta-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-link:hover {
  background: var(--terracotta-700);
  box-shadow: 0 16px 36px rgba(67, 20, 8, 0.34);
  transform: translateY(-2px);
}

.cta-link:active {
  transform: translateY(0);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #dce8dc;
  font-size: 14px;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #edc981;
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
}

.image-frame {
  padding: 8px;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.hero-visual figcaption {
  width: calc(100% - 36px);
  margin: -2px auto 0;
  padding: 14px 18px;
  color: #eaf1e8;
  font-size: 13px;
  text-align: center;
  background: rgba(8, 35, 21, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0 0 16px 16px;
}

.section {
  padding-block: 80px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.book-intro h2,
.daily-panel h2,
.claim-copy h2 {
  margin: 0;
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -0.025em;
}

.concerns-section {
  background: var(--cream-50);
}

.concerns-grid {
  display: grid;
  gap: 14px;
}

.concern-card {
  position: relative;
  min-height: 230px;
  padding: 28px 24px 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.card-number {
  display: block;
  margin-bottom: 36px;
  color: var(--terracotta-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.concern-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.concern-card p {
  margin: 0;
  color: var(--ink-muted);
}

.concern-card::after {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 36px;
  height: 36px;
  content: "";
  border: 1px solid var(--sage-300);
  border-radius: 50% 10% 50% 50%;
  transform: rotate(-30deg);
}

.insight {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 38px auto 0;
  padding: 24px;
  color: #f2f6ef;
  background: var(--forest-800);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.insight svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #f1d59e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight p {
  margin: 0;
}

.book-section {
  position: relative;
  background:
    linear-gradient(rgba(255, 253, 248, 0.76), rgba(255, 253, 248, 0.76)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(24, 75, 46, 0.05) 80px);
}

.book-layout {
  display: grid;
  gap: 38px;
}

.book-intro {
  max-width: 680px;
}

.book-intro > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
}

.book-intro .cta-link {
  margin-top: 30px;
}

.cta-link-dark {
  background: var(--forest-800);
  box-shadow: 0 12px 30px rgba(12, 41, 26, 0.22);
}

.cta-link-dark:hover {
  background: var(--forest-950);
  box-shadow: 0 16px 36px rgba(12, 41, 26, 0.3);
}

.resource-grid {
  display: grid;
  gap: 14px;
}

.resource-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  background: var(--sage-100);
  border: 1px solid rgba(24, 75, 46, 0.12);
  border-radius: var(--radius-sm);
}

.resource-card svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--forest-700);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-card strong {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
}

.resource-note {
  margin: 6px 0 0;
  padding: 18px 20px;
  color: var(--terracotta-700);
  font-weight: 800;
  text-align: center;
  background: #fff4e8;
  border: 1px solid rgba(146, 55, 25, 0.18);
  border-radius: var(--radius-sm);
}

.daily-section {
  padding-block: 0;
  background: var(--cream-50);
}

.daily-panel {
  display: grid;
  gap: 38px;
  padding: 46px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(197, 156, 86, 0.22), transparent 20rem),
    var(--forest-950);
  border-radius: var(--radius-lg);
}

.daily-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding-block: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.daily-list li:first-child {
  padding-top: 0;
}

.daily-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.daily-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--forest-950);
  font-size: 13px;
  font-weight: 900;
  background: #efd7a4;
  border-radius: 50%;
}

.daily-list p {
  margin: 2px 0 0;
  color: #e6eee6;
}

.claim-section {
  background: var(--cream-50);
}

.claim-panel {
  display: grid;
  gap: 42px;
  padding: 40px 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(169, 64, 29, 0.95), rgba(116, 42, 20, 0.98)),
    var(--terracotta-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.claim-copy > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 22px 0 0;
  color: #fff0e6;
}

.cta-link-light {
  margin-top: 26px;
  color: var(--forest-950);
  background: var(--cream-50);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(66, 20, 8, 0.2);
}

.cta-link-light:hover {
  color: var(--forest-950);
  background: #f5e6c8;
}

.steps {
  padding: 28px 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border-radius: var(--radius-sm);
}

.steps h3 {
  margin: 0 0 20px;
  font-size: 24px;
}

.steps ol {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--forest-800);
  border-radius: 50%;
}

.steps strong {
  color: var(--forest-950);
}

.steps p {
  margin: 2px 0 0;
  color: var(--ink-muted);
}

.activity-note {
  max-width: 920px;
  margin: 28px auto 0;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}

.activity-note p {
  margin: 6px 0;
}

.activity-note .health-note {
  margin-top: 18px;
  padding: 15px 18px;
  color: var(--forest-950);
  line-height: 1.75;
  text-align: left;
  background: var(--sage-100);
  border: 1px solid var(--sage-300);
  border-radius: 12px;
}

.site-footer {
  padding-block: 34px 100px;
  color: #dce8dc;
  background: var(--forest-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  color: var(--white);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  font-size: 20px;
}

.footer-inner p {
  margin: 2px 0 0;
  color: #aebfb2;
  font-size: 13px;
}

.footer-link {
  min-width: 96px;
  min-height: 44px;
  padding: 9px 16px;
  color: #f2dda9;
  background: transparent;
  border: 1px solid rgba(242, 221, 169, 0.42);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.footer-link:hover {
  color: var(--forest-950);
  background: #f2dda9;
}

.mobile-cta {
  position: fixed;
  right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 40;
  min-height: 58px;
  box-shadow: 0 14px 38px rgba(67, 20, 8, 0.4);
}

dialog {
  width: min(calc(100% - 24px), 720px);
  max-height: min(84dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream-50);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(5, 24, 14, 0.45);
}

dialog::backdrop {
  background: rgba(5, 24, 14, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto 1fr;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 22px 18px;
  background: var(--sage-100);
  border-bottom: 1px solid var(--border);
}

.dialog-header .eyebrow {
  margin-bottom: 8px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--forest-950);
  font-size: 34px;
}

.dialog-close {
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 44px;
  place-items: center;
  color: var(--forest-950);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.dialog-close:hover {
  background: #f1e4c7;
  transform: rotate(4deg);
}

.dialog-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dialog-content {
  padding: 24px 22px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-content > p:first-child {
  margin-top: 0;
  color: var(--ink-muted);
}

.dialog-content section {
  padding-block: 18px;
  border-top: 1px solid var(--border);
}

.dialog-content h3 {
  margin: 0 0 8px;
  color: var(--forest-900);
  font-size: 18px;
}

.dialog-content p {
  margin: 0;
  color: var(--ink-muted);
}

.policy-date {
  padding-top: 8px;
  font-size: 13px;
}

@media (min-width: 600px) {
  .container {
    width: min(calc(100% - 48px), var(--content));
  }

  .hero {
    padding-block: 80px 88px;
  }

  .concerns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .resource-note {
    grid-column: 1 / -1;
  }

  .daily-panel,
  .claim-panel {
    padding: 54px 46px;
  }
}

@media (min-width: 761px) {
  body {
    padding-bottom: 0;
  }

  .section {
    padding-block: 104px;
  }

  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 38px;
  }
}

@media (min-width: 920px) {
  .book-layout,
  .claim-panel,
  .daily-panel {
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
    align-items: center;
    gap: 72px;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .hero {
    display: grid;
    min-height: min(820px, calc(100svh - 40px));
    align-items: center;
    padding-block: 82px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
    align-items: center;
    gap: clamp(40px, 4vw, 58px);
  }

  .hero-visual {
    transform: rotate(1deg);
  }

  .concerns-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .concern-card:nth-child(even) {
    transform: translateY(18px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-visual,
  .concern-card:nth-child(even) {
    transform: none;
  }
}

@media print {
  body {
    padding-bottom: 0;
    background: var(--white);
  }

  .notice-bar,
  .cta-link,
  .footer-link,
  dialog {
    display: none !important;
  }

  .hero {
    min-height: auto;
    color: var(--ink);
    background: var(--white);
  }
}
