:root {
  --bg: #fff8ec;
  --surface: #fffdf8;
  --surface-soft: #fff5e3;
  --surface-warm: #ffefd2;
  --line: rgba(119, 74, 28, 0.13);
  --text: #321807;
  --muted: #7b6251;
  --subtle: #a68161;
  --orange: #ff9f08;
  --orange-dark: #ef8500;
  --orange-soft: #fff1ce;
  --blue: #4f8df7;
  --green: #78ad55;
  --shadow: 0 18px 54px rgba(134, 83, 25, 0.12);
  --shadow-soft: 0 10px 28px rgba(134, 83, 25, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 195, 90, 0.2), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 48%, #fffaf3 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 94px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 96px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr 210px;
  align-items: center;
  gap: 24px;
}

.brand {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
}

.brand:focus-visible,
.tab-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.link-button:focus-visible,
.download-pill:focus-visible,
.mobile-bottom-nav button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.65);
  outline-offset: 4px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  font-size: 31px;
  line-height: 1.05;
  font-weight: 800;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.tabbar {
  display: flex;
  justify-content: center;
  gap: 34px;
  height: 100%;
}

.tab-button {
  position: relative;
  min-width: 112px;
  min-height: 58px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.58);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--orange);
}

.tab-button.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.tab-button:active,
.download-pill:active,
.primary-button:active,
.secondary-button:active,
.link-button:active {
  transform: translateY(1px) scale(0.98);
}

.download-pill {
  justify-self: end;
  width: 184px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ffb72c 0%, #ff9700 100%);
  box-shadow: 0 12px 26px rgba(255, 159, 8, 0.26);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.download-pill:hover {
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 16px 32px rgba(255, 159, 8, 0.32);
}

.download-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.download-copy > span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
}

.download-pill small {
  display: block;
  margin-top: 3px;
  color: rgba(80, 47, 14, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.icon-windows {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#fff 0 0) left top / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) right top / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) left bottom / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) right bottom / 8px 8px no-repeat;
}

.page-stage {
  width: min(calc(100% - 96px), var(--max));
  margin: 0 auto;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel.is-active {
  animation: panel-in 360ms ease both;
}

.hero,
.discover-hero,
.profile-hero {
  min-height: 418px;
  display: grid;
  align-items: center;
  gap: 26px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(640px, 0.58fr) minmax(0, 1fr);
  min-height: 360px;
  height: clamp(360px, 31vw, 450px);
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.profile-hero {
  grid-template-columns: minmax(380px, 0.72fr) minmax(0, 1fr);
  padding: 40px 0 18px;
}

.page-kv-hero {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 23.5vw, 340px);
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.page-kv-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page-kv-hero .hero-copy {
  grid-column: 1;
  max-width: 560px;
  padding: 26px 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.discover-hero h1,
.profile-hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.16;
  font-weight: 900;
}

.hero-lede,
.discover-hero p {
  max-width: 540px;
  margin: 22px 0 0;
  color: #4f2f1d;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-button,
.secondary-button,
.link-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, color 170ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(180deg, #ffbc31 0%, var(--orange) 100%);
  box-shadow: 0 13px 26px rgba(255, 159, 8, 0.3);
  font-size: 18px;
  font-weight: 850;
}

.primary-button:hover {
  box-shadow: 0 18px 34px rgba(255, 159, 8, 0.36);
}

.primary-button.compact {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.secondary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 26px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(153, 103, 47, 0.12);
  box-shadow: var(--shadow-soft);
  font-size: 17px;
  font-weight: 850;
}

.secondary-button:hover,
.link-button:hover {
  color: var(--orange-dark);
  background: #fffaf1;
}

.link-button {
  min-height: 44px;
  padding-inline: 19px;
  color: var(--muted);
  font-size: 15px;
}

.icon-download {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: #6e5a49;
  font-size: 14px;
  font-weight: 750;
}

.benefit-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.leaf-mark,
.shield-mark,
.safe-mark,
.sync-mark,
.fire-dot,
.notice-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.leaf-mark {
  background: linear-gradient(135deg, #9ec36b 0%, #6fa34a 100%);
  border-radius: 90% 0 90% 0;
  transform: rotate(-35deg);
}

.shield-mark {
  border: 2px solid #e36f40;
  border-radius: 50% 50% 46% 46%;
}

.safe-mark {
  border: 2px solid #7ea060;
  border-radius: 7px;
  transform: rotate(45deg);
}

.sync-mark {
  border: 3px solid #77bfb6;
  border-top-color: transparent;
}

.hero-visual,
.studio-panel {
  position: relative;
}

.hero-visual::before,
.studio-panel::before {
  content: "";
  position: absolute;
  inset: 10% 1% 3%;
  border-radius: 50%;
  background: rgba(255, 194, 100, 0.22);
  filter: blur(32px);
}

.hero-visual img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 24px 70px rgba(143, 91, 35, 0.1);
}

.home-hero .hero-visual {
  grid-column: 1 / -1;
  grid-row: 1;
  position: absolute;
  inset: 0;
  z-index: -1;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.home-hero .hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.home-hero .hero-visual::before {
  display: none;
}

.home-hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 640px;
  align-self: center;
  padding: 24px 46px;
}

.home-hero .hero-lede {
  max-width: 420px;
  margin-top: 16px;
}

.home-hero .hero-actions {
  margin-top: 22px;
}

.home-hero .benefit-list {
  margin-top: 20px;
}

.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

.feature-card,
.section-block,
.tool-card,
.membership-card,
.progress-card,
.test-kit-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.83);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 214px;
  display: grid;
  grid-template-columns: 0.72fr 0.9fr;
  align-items: center;
  gap: 8px;
  padding: 24px 22px 22px 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.developer-card,
.pet-variety-card {
  min-height: 220px;
  gap: 12px;
  padding: 28px 32px;
  border: 0;
  box-shadow: none;
}

.developer-card {
  position: relative;
  grid-template-columns: minmax(360px, 0.46fr) 1fr;
  background: transparent;
}

.pet-variety-card {
  position: relative;
  grid-template-columns: minmax(360px, 0.46fr) 1fr;
  background: transparent;
}

.developer-card .feature-copy,
.pet-variety-card .feature-copy {
  align-self: center;
}

.developer-card .feature-copy {
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.pet-variety-card .feature-copy {
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.developer-card p,
.pet-variety-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.developer-card .mini-tools,
.pet-variety-card .tag-row {
  gap: 8px 10px;
  margin-top: 14px;
}

.developer-card .mini-tools span,
.pet-variety-card .tag-row span {
  min-height: 30px;
  padding-inline: 13px;
  font-size: 13px;
}

.feature-card img {
  width: 100%;
  height: 164px;
  object-fit: contain;
}

.developer-card .feature-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  pointer-events: none;
}

.pet-variety-card .feature-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.developer-card h2,
.pet-variety-card h2 {
  font-size: 22px;
}

.feature-card h2,
.section-heading h2,
.tool-card h2,
.membership-card h2,
.progress-card h2,
.test-kit-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.feature-card p,
.tool-card p,
.membership-card p,
.progress-card p,
.test-kit-card p,
.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 600;
}

.round-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eaf1ff;
}

.icon-code::before,
.icon-paw::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  color: var(--blue);
}

.icon-code::before {
  border-left: 0;
  border-right: 0;
  transform: skew(-12deg);
}

.icon-paw {
  background: #edf7e8;
}

.icon-paw::before {
  border-radius: 50%;
  box-shadow:
    -9px -8px 0 -5px currentColor,
    0 -11px 0 -5px currentColor,
    9px -8px 0 -5px currentColor;
  color: #74aa4d;
}

.mini-tools,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 17px;
}

.mini-tools span,
.tag-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #6f583f;
  background: #fff4d9;
  font-size: 13px;
  font-weight: 750;
}

.section-block {
  margin-top: 26px;
  padding: 22px 28px 28px;
  border-radius: var(--radius-xl);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading > div:has(p) {
  display: block;
}

.fire-dot {
  position: relative;
  background: linear-gradient(180deg, #ff6e3f, #ffbd2a);
}

.fire-dot::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 8px;
  height: 10px;
  border-radius: 8px 8px 8px 2px;
  background: #fff4cf;
  transform: rotate(28deg);
}

.pet-pack-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pet-pack-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 136px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 22px rgba(134, 83, 25, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pet-pack-card:hover,
.post-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 36px rgba(134, 83, 25, 0.12);
}

.pet-pack-card img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
}

.pet-pack-card h3,
.post-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

.pet-pack-card p,
.post-card p,
.pet-pack-card span,
.post-card span {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discover-hero {
  grid-template-columns: minmax(360px, 0.64fr) 1fr;
  min-height: 238px;
  padding-top: 22px;
}

.discover-hero.page-kv-hero,
.profile-hero.page-kv-hero {
  grid-template-columns: minmax(360px, 0.58fr) 1fr;
  min-height: 0;
  padding: 0;
}

.profile-hero.page-kv-hero {
  height: clamp(360px, 28vw, 390px);
  margin-bottom: 18px;
}

.discover-hero img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  margin: 14px 0 32px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 159, 8, 0.3);
  border-radius: 12px;
  color: #9a5524;
  background: rgba(255, 248, 231, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.notice-bar p {
  margin: 0;
  flex: 1;
}

.notice-bar a {
  color: #f06c2a;
  white-space: nowrap;
}

.notice-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid #ffb338;
  background: #ffe19a;
}

.source-label {
  color: #b08b6a;
  font-size: 14px;
  font-weight: 700;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 8px 20px rgba(134, 83, 25, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.post-card h3 {
  min-height: 48px;
  padding: 13px 14px 0;
  font-size: 15px;
}

.post-card p,
.post-card span {
  padding-inline: 14px;
}

.post-card span {
  padding-bottom: 15px;
}

.profile-hero {
  min-height: 346px;
  grid-template-columns: minmax(380px, 0.72fr) minmax(0, 1fr);
}

.profile-hero h1 {
  font-size: 44px;
}

.studio-panel img {
  position: relative;
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 58px rgba(120, 74, 31, 0.16);
}

.creator-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-soft);
}

.tool-card {
  min-height: 154px;
  padding: 22px 22px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.tool-card:last-child {
  border-right: 0;
}

.tool-card a {
  display: inline-block;
  margin-top: 10px;
  color: #3a79ff;
  font-size: 14px;
  font-weight: 800;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 2px;
}

.type-card {
  position: relative;
  display: block;
  aspect-ratio: 356 / 130;
  min-width: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #fff8ed;
}

.type-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.type-card-copy {
  position: relative;
  z-index: 1;
  max-width: 56%;
  padding: 14px 16px;
}

.type-card-copy h3,
.type-card-copy p {
  margin: 0;
}

.type-card-copy h3 {
  color: #4a2410;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}

.type-card-copy p {
  margin-top: 8px;
  color: #7b6251;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.type-card-anime .type-card-copy h3 {
  color: #1e67d7;
}

.profile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.membership-card,
.progress-card,
.test-kit-card {
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.membership-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  padding: 26px 0 0 28px;
}

.membership-card > img:not(.membership-card-bg) {
  align-self: end;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 80% 50%;
}

.maxvip-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 34vw, 520px);
  padding: clamp(42px, 6vw, 104px);
  border: 1px solid rgba(119, 74, 28, 0.12);
  border-radius: var(--radius-xl);
  background: #fffaf0;
  isolation: isolate;
}

.membership-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.maxvip-card .membership-copy {
  position: relative;
  z-index: 1;
  width: min(660px, 54%);
}

.maxvip-card h2 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 68px);
  line-height: 1.12;
  font-weight: 900;
}

.maxvip-card p {
  max-width: 500px;
  margin: 26px 0 0;
  color: #7b6251;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.72;
  font-weight: 800;
}

.maxvip-card .compact {
  min-width: clamp(190px, 21vw, 290px);
  margin-top: clamp(28px, 4vw, 60px);
  font-size: clamp(19px, 1.7vw, 30px);
}

.progress-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.progress-ring {
  --value: 0;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffdf8 0 56%, transparent 57%),
    conic-gradient(var(--orange) calc(var(--value) * 1%), #f2e1c3 0);
  box-shadow: inset 0 0 0 1px rgba(119, 74, 28, 0.06);
}

.progress-ring strong {
  font-size: 24px;
  font-weight: 900;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 62px;
  margin-top: 14px;
}

.bar-chart span {
  width: 18px;
  height: 10%;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #ffbd31, #ff9400);
  transition: height 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-card.is-visible .bar-chart span {
  height: var(--target);
}

.test-kit-card {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 24px 0 24px 24px;
  background: linear-gradient(135deg, #fffdfb, #f7f1ff);
}

.test-kit-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 13px 0 0 13px;
}

.mobile-bottom-nav {
  display: none;
}

.site-footer {
  width: min(calc(100% - 96px), var(--max));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  color: #9b7b61;
  font-size: 13px;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--orange-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid rgba(255, 159, 8, 0.24);
  border-radius: 999px;
  color: #5b3517;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 44px rgba(134, 83, 25, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 14px;
  font-weight: 750;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legacy-entry {
  width: min(calc(100% - 40px), 680px);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.legacy-entry h1,
.legacy-entry p {
  margin: 0;
}

.legacy-entry a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-pressed {
  transform: translateY(1px) scale(0.98);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .header-inner,
  .page-stage,
  .site-footer {
    width: min(calc(100% - 48px), var(--max));
  }

  .header-inner {
    grid-template-columns: 270px 1fr 168px;
    gap: 16px;
  }

  .brand-copy strong {
    font-size: 26px;
  }

  .brand-copy span {
    font-size: 14px;
  }

  .tabbar {
    gap: 18px;
  }

  .download-pill {
    width: 168px;
    gap: 9px;
    padding-inline: 14px;
  }

  .download-copy > span {
    font-size: 17px;
  }

  .download-pill small {
    font-size: 12px;
  }

  .hero h1,
  .discover-hero h1 {
    font-size: 44px;
  }

  .split-feature-grid,
  .discover-hero,
  .profile-bottom-grid {
    grid-template-columns: 1fr;
  }

  .creator-tools,
  .post-grid,
  .pet-pack-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card:nth-child(2) {
    border-right: 0;
  }

  .tool-card:nth-child(1),
  .tool-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .home-hero,
  .profile-hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .home-hero {
    min-height: 430px;
    padding: 0;
  }

  .home-hero .hero-copy {
    padding: 30px 34px 34px;
  }

  .home-hero .hero-visual {
    min-height: 0;
  }

  .home-hero .hero-visual img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 58% center;
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 96px;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0 14px;
  }

  .brand {
    min-height: 54px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .brand-copy span {
    font-size: 13px;
  }

  .tabbar {
    justify-content: flex-start;
    gap: 6px;
    height: 50px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabbar::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    min-width: 104px;
    min-height: 48px;
    font-size: 15px;
  }

  .tab-button::after {
    bottom: 4px;
  }

  .download-pill {
    display: none;
  }

  .page-stage,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .home-hero,
  .profile-hero,
  .discover-hero {
    min-height: 0;
    padding: 26px 0 18px;
  }

  .page-kv-hero,
  .discover-hero.page-kv-hero,
  .profile-hero.page-kv-hero {
    min-height: 320px;
    height: clamp(320px, 82vw, 420px);
    padding: 0;
    border-radius: 22px;
  }

  .profile-hero.page-kv-hero {
    min-height: 400px;
    height: clamp(400px, 104vw, 460px);
    margin-bottom: 16px;
  }

  .page-kv-hero .hero-copy {
    max-width: 280px;
    padding: 24px 18px;
  }

  .home-hero {
    min-height: 600px;
    padding: 0;
    border-radius: 22px;
  }

  .home-hero .hero-copy {
    padding: 24px 18px 190px;
  }

  .home-hero .hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
  }

  .hero h1,
  .discover-hero h1,
  .profile-hero h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .hero-lede,
  .discover-hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 12px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .benefit-list {
    gap: 10px 18px;
  }

  .hero-visual img,
  .studio-panel img {
    min-height: auto;
    height: auto;
  }

  .home-hero .hero-visual img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 54% center;
  }

  .feature-card,
  .membership-card,
  .progress-card,
  .test-kit-card {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .feature-card img {
    height: auto;
  }

  .developer-card,
  .pet-variety-card {
    padding: 16px 16px;
  }

  .developer-card .feature-copy {
    max-width: 250px;
  }

  .pet-variety-card .feature-copy {
    max-width: 220px;
  }

  .section-block {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .type-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .creator-tools,
  .post-grid,
  .pet-pack-row {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .tool-card:nth-child(2),
  .tool-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-card:last-child {
    border-bottom: 0;
  }

  .notice-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pet-pack-card {
    grid-template-columns: 86px 1fr;
    min-height: 110px;
  }

  .pet-pack-card img {
    width: 86px;
    height: 86px;
  }

  .membership-card {
    padding: 22px 18px 0;
  }

  .maxvip-card {
    min-height: 360px;
    padding: 30px 22px;
  }

  .maxvip-card .membership-copy {
    width: min(230px, 72%);
  }

  .maxvip-card h2 {
    font-size: 30px;
  }

  .maxvip-card p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
  }

  .maxvip-card .compact {
    min-width: 170px;
    margin-top: 24px;
    font-size: 17px;
  }

  .membership-card > img:not(.membership-card-bg),
  .test-kit-card img {
    height: auto;
    border-radius: 14px;
  }

  .membership-card-bg {
    height: 100%;
    border-radius: 0;
    object-position: 62% center;
  }

  .progress-card {
    justify-items: start;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 0.8fr 1.25fr 1fr;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(119, 74, 28, 0.12);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 44px rgba(134, 83, 25, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav button {
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
  }

  .mobile-bottom-nav button.is-active {
    color: #fff;
    background: linear-gradient(180deg, #ffb72c 0%, #ff9700 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
