:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #0a2631;
  background: #dcece8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .8), transparent 34rem),
    #dcece8;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(1680px, calc(100% - 48px));
  margin: 84px auto;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(244, 252, 249, .93);
  box-shadow: 0 28px 70px rgba(14, 55, 53, .18);
}

.topbar {
  min-height: 68px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #071d28;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
}

.brand-mark img { width: 25px; height: 25px; object-fit: contain; }
.community-group { margin-left: 30px; margin-right: auto; padding: 8px 14px; border: 1px solid #57dcb9; border-radius: 10px; background: rgba(49, 212, 169, .12); color: #86ffdc; font-size: 22px; line-height: 1.35; font-weight: 800; white-space: nowrap; }
.page-name { font-size: 13px; font-weight: 700; color: #d8ebe7; }

.content { padding: 30px 28px 34px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: #009873; font-size: 12px; line-height: 1; font-weight: 850; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
h2 { margin-bottom: 10px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.intro-note { max-width: 500px; margin-bottom: 2px; color: #587078; font-size: 14px; text-align: right; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.benefit-card {
  min-width: 0;
  padding: 0;
  display: block;
  border: 1px solid #b7e5d8;
  border-radius: 22px;
  background: rgba(249, 255, 253, .82);
  box-shadow: 0 12px 30px rgba(21, 91, 79, .06);
}
.featured-card { border-color: #72d6ba; box-shadow: 0 14px 34px rgba(0, 151, 115, .12); }
.card-heading-row { min-height: 20px; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.badge { padding: 5px 9px; border-radius: 999px; background: #d7f6ed; color: #007d5e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.summary { min-height: 44px; margin-bottom: 20px; color: #526a72; font-size: 14px; line-height: 1.65; }
.summary strong, .steps strong { color: #008765; }

.steps { margin: 0 0 22px; padding: 0; display: grid; gap: 13px; list-style: none; }
.steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 9px; }
.steps li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #aaddcf; border-radius: 50%; background: #fff; color: #008b69; font-size: 12px; font-weight: 800; }
.steps p { margin: 1px 0 0; font-size: 13px; line-height: 1.55; }
.steps a { color: #008765; font-weight: 750; }

.qr-panel {
  margin-top: 0;
  padding: 17px 14px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #b5e1d6;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.qr-panel img {
  width: 172px;
  height: 172px;
  object-fit: none;
  object-position: 50% 70%;
  image-rendering: auto;
}
.qr-panel strong { margin-top: 6px; color: #008765; font-size: 13px; }
.qr-panel small { margin-top: 3px; color: #71868c; font-size: 11px; }
.card-actions { margin-top: 13px; display: grid; gap: 8px; }
.button {
  width: 100%; min-height: 44px; padding: 10px 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #a9d8cc; border-radius: 11px;
  font: inherit; font-size: 13px; font-weight: 750; line-height: 1.35;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(0, 153, 115, .25); outline-offset: 2px; }
.button-primary { border-color: #009b75; background: #009b75; color: #fff; }
.button-primary:hover { background: #008767; box-shadow: 0 8px 18px rgba(0, 135, 103, .18); }
.button-secondary { background: #e7f7f2; color: #007b5d; }
.button-ghost { background: #fff; color: #183b43; }
.download-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: #526a72; font-size: 12px; }
.download-code strong { color: #007b5d; font-size: 14px; letter-spacing: .08em; }
.copy-code { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: #007b5d; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.copy-code:hover { background: #e7f7f2; }
.copy-code:focus-visible { outline: 3px solid rgba(0, 153, 115, .25); outline-offset: 1px; }
.fine-print { margin: 12px 5px 0; color: #71858b; font-size: 11px; line-height: 1.55; text-align: center; }
.copy-status { min-height: 22px; margin: 17px 0 -10px; color: #007b5d; font-size: 13px; font-weight: 700; text-align: center; }
.swipe-hint, .benefit-switcher { display: none; }

@media (max-width: 1100px) {
  .page-shell { width: min(900px, calc(100% - 36px)); margin: 36px auto; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .page-shell { width: 100%; margin: 0; min-height: 100vh; border-radius: 0; }
  .topbar { min-height: 62px; padding: 14px 18px; flex-wrap: wrap; gap: 8px 16px; }
  .community-group { order: 3; flex-basis: 100%; margin: 0; padding: 9px 12px; font-size: 20px; }
  .page-name { margin-left: auto; }
  .content { padding: 24px 0 30px; }
  .intro { padding: 0 18px; display: block; }
  .intro-note { margin-top: 12px; text-align: left; }
  .benefit-switcher { display: block; margin: 0 18px 18px; padding: 13px; border: 2px solid #36b895; border-radius: 16px; background: #e3f8f0; box-shadow: 0 5px 16px rgba(0, 135, 103, .1); }
  .swipe-callout { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .swipe-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: #008767; color: white; font-size: 29px; font-weight: 800; line-height: 1; }
  .swipe-callout strong { display: block; color: #00694f; font-size: 16px; line-height: 1.5; }
  .swipe-callout small { display: block; color: #487266; font-size: 11px; line-height: 1.5; }
  .benefit-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .benefit-tabs button { min-width: 0; min-height: 42px; padding: 6px 2px; border: 1px solid #a8ddcb; border-radius: 9px; background: white; color: #235347; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
  .benefit-tabs button[aria-pressed="true"] { border-color: #008767; background: #008767; color: white; box-shadow: 0 3px 8px rgba(0, 135, 103, .2); }
  .benefit-tabs button:focus-visible, .benefit-controls button:focus-visible { outline: 3px solid #4ab798; outline-offset: 2px; }
  .benefit-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
  .benefit-controls button { min-height: 38px; padding: 7px 10px; border: 1px solid #a8ddcb; border-radius: 8px; background: white; color: #007b5d; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
  .benefit-controls button:disabled { opacity: .38; cursor: default; }
  #benefit-position { color: #00694f; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
  .benefit-grid {
    padding: 0 18px 10px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(88vw, 390px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .benefit-grid::-webkit-scrollbar { display: none; }
  .benefit-card, .featured-card { grid-column: auto; scroll-snap-align: center; padding: 0; }
  .featured-card .card-copy, .featured-card .qr-panel, .featured-card .card-actions, .featured-card .fine-print { width: auto; }
  .summary { min-height: 0; }
  .swipe-hint { display: block; margin: 7px 18px 0; padding: 12px 4px; border-radius: 10px; background: #ddf5ec; color: #00694f; font-size: 13px; font-weight: 750; text-align: center; }
  .copy-status { margin-left: 18px; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}


/* Native details keeps the title clickable by mouse, touch, Enter and Space. */
.card-toggle {
  position: relative;
  display: block;
  min-height: 94px;
  padding: 20px 22px 16px;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-toggle::-webkit-details-marker { display: none; }
.card-toggle::marker { content: ""; }
.card-toggle:hover { background: rgba(0, 153, 115, .045); }
.card-toggle:focus-visible { outline: 3px solid #009b75; outline-offset: -4px; }
.card-toggle h2 { margin: 0; }
.card-toggle .card-heading-row { position: relative; min-height: 12px; margin-bottom: 7px; }
.card-toggle .card-heading-row .eyebrow { margin-bottom: 0; }
.card-toggle .badge { position: absolute; right: 0; top: -4px; }
.toggle-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  color: #008765;
  font-size: 13px;
  line-height: 20px;
  font-weight: 750;
  white-space: nowrap;
}
.toggle-collapse { display: none; }
.benefit-card[open] > .card-toggle .toggle-expand { display: none; }
.benefit-card[open] > .card-toggle .toggle-collapse { display: inline; }
.toggle-chevron {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: -4px 2px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.benefit-card[open] > .card-toggle .toggle-chevron { transform: rotate(225deg); margin-top: 4px; }
.card-details { padding: 0 22px 22px; }
@media (max-width: 680px) {
  .card-toggle { padding: 19px 19px 16px; min-height: 88px; }
  .card-details { padding: 0 19px 19px; }
}

/* Keep the longer tool name balanced on narrow screens. */
#hidden-bag-title, .benefit-tabs button { text-wrap: balance; }
