html:has(> .pawtask-home) {
  overscroll-behavior-y: auto;
}

.pawtask-home {
  --ink: #392d23;
  --muted: #6c6051;
  --orange-ink: #9a4316;
  --orange-wash: #fff1e3;
  --rule: #ece3d4;
  background: #fffdf9;
  overscroll-behavior-y: auto;
}

.pawtask-shell.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.pawtask-shell .pawtask-content {
  flex: 1;
}

.pawtask-shell .pawtask-content > section[id] {
  scroll-margin-block-start: var(--pawtask-header-height);
}

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

.pawtask-shell button,
.pawtask-download-dialog button {
  font-family: inherit;
  cursor: pointer;
}

.pawtask-home :focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 5px;
}

.pawtask-shell .wrap {
  width: var(--pawtask-layout-width);
  margin-inline: auto;
}

.pawtask-shell .pawtask-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fffcf4;
  border-top: 1px solid #ebdfcf;
}

.pawtask-shell .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pawtask-shell .pawtask-footer .bar {
  flex-wrap: wrap;
  min-height: 44px;
  gap: 4px 18px;
  padding-block: 6px max(6px, env(safe-area-inset-bottom));
}

.pawtask-footer .site-registration__company {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  color: #6c6051;
  font-size: 11px;
}

.pawtask-footer .site-registration__filings {
  color: #6c6051;
  font-size: 11px;
  gap: 3px clamp(16px, 2.5vw, 36px);
}

.pawtask-footer .site-registration__link {
  padding: 3px 0;
  font-weight: 500;
}

.pawtask-footer .site-registration__icon {
  width: 13px;
  height: auto;
}

.pawtask-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pawtask-footer .footer-legal button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.pawtask-shell .footer-legal {
  font-size: 12px;
  color: #6c6051;
}

.pawtask-shell .hero {
  position: relative;
  margin-block-start: calc(-1 * var(--pawtask-header-height));
  padding-block-start: var(--pawtask-header-height);
  background: #fbf1e2 url("./assets/pawtask-home/desk-background.webp") center 57% / cover no-repeat;
}

.pawtask-shell .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#fff9ee 0%,#fff8edeb 23%,#fff8ed4d 47%,transparent 70%);
  pointer-events: none;
}

.pawtask-shell .hero-inner {
  position: relative;
  min-height: 455px;
  display: grid;
  grid-template-columns: minmax(330px, .81fr) minmax(0,1.35fr);
  align-items: center;
  gap: 26px;
  padding-block: 27px 30px;
}

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

.pawtask-shell h1, .pawtask-shell h2, .pawtask-shell p {
  margin: 0;
}

.pawtask-shell h1 {
  font-family: "Songti SC","Noto Serif CJK SC",serif;
  font-size: clamp(48px,5.1vw,74px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -.055em;
  color: #49331e;
}

.pawtask-shell .hero-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  max-width: 384px;
  margin-top: 21px;
}

.pawtask-shell .tag {
  margin-bottom: 10px;
  color: var(--orange-ink);
  font-weight: 680;
  font-size: 14px;
  letter-spacing: .075em;
}

.pawtask-shell .lede {
  max-width: 16em;
  color: #514133;
  font-size: 17px;
  line-height: 1.85;
}

.pawtask-shell .hero-product-mark {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #503724;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pawtask-shell .hero-product-mark img {
  width: clamp(54px, 5.6vw, 74px);
  height: auto;
  filter: drop-shadow(0 5px 8px #784d292b);
}

.pawtask-shell .downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 352px);
  margin-top: 26px;
}

.pawtask-shell .download-option {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: center;
}

.pawtask-shell .download-support {
  color: #63503e;
  font-size: 12px;
  line-height: 1.45;
}

.pawtask-shell .download {
  padding: 0 8px;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 30px;
  background: var(--accent);
  color: #402410;
  font-weight: 640;
  font-size: 14px;
}

.pawtask-shell .download.mac {
  color: var(--orange-ink);
  background: #fffaf1;
}

.pawtask-shell .download svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.pawtask-shell .pawtask-hero-visual {
  min-width: 0;
  position: relative;
  display: grid;
  /* Match the desktop app's 1000px main window and 360px task window. */
  grid-template-columns: minmax(0, 1fr) minmax(0, .36fr);
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  isolation: isolate;
  margin-inline: calc(-1 * clamp(34px, 5vw, 66px)) clamp(23px, 3vw, 44px);
  padding-inline-start: clamp(26px, 3vw, 44px);
}

.pawtask-shell :is(.hero-window, .hero-desktop-todo) {
  width: 100%;
  height: auto;
}

.pawtask-shell .hero-window {
  filter: drop-shadow(0 15px 12px #5a3b1f35);
}

.pawtask-shell .hero-desktop-todo {
  filter: drop-shadow(0 8px 10px #5a3b1f34);
}

.pawtask-shell .hero-pet {
  position: absolute;
  z-index: 2;
  bottom: -4px;
  left: 0;
  width: clamp(109px,13vw,186px);
  max-height: 162px;
  object-fit: contain;
  filter: drop-shadow(0 11px 8px #49331e30);
}

.pawtask-discovery {
  background: linear-gradient(180deg, #fffaf3, #fffdf9 56%);
}

.pawtask-shell .menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-block: 20px 16px;
  border-radius: 14px;
  background: var(--orange-wash);
}

.pawtask-shell .feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
  min-height: 74px;
  padding: 10px clamp(8px, 1.1vw, 16px);
  border-radius: 12px;
  transition: background-color 160ms ease;
}

.pawtask-shell .feature-card:hover {
  background-color: #ffe6d1;
}

.pawtask-shell .feature-card:focus-visible {
  outline-offset: -3px;
}

.pawtask-shell .feature-card-copy {
  display: grid;
  gap: 4px;
}

.pawtask-shell .feature-card-copy strong {
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.28;
  font-weight: 730;
}

.pawtask-shell .feature-card-copy span {
  color: #6c6056;
  font-size: 12px;
}

.pawtask-shell .feature-card-icon {
  display: block;
  width: clamp(30px, 3.2vw, 42px);
  height: auto;
  aspect-ratio: 1;
}

.pawtask-shell .pet-switch-icon {
  position: relative;
}

.pawtask-shell .pet-switch-icon img {
  width: 100%;
  height: auto;
}

.pawtask-shell .pet-switch-icon svg {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 47%;
}

.pawtask-shell .skin-shelf {
  padding-block-start: 18px;
}

.pawtask-shell .skin-shelf-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(4px, 1vw, 16px);
  margin-bottom: 12px;
}

.pawtask-shell .skin-shelf h2 {
  grid-column: 2;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -.03em;
  text-align: center;
}

.pawtask-shell .skin-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 8px;
}

.pawtask-shell .skin-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #f0d9c1;
  border-radius: 50%;
  background: #fffaf4;
  color: var(--orange-ink);
}

.pawtask-shell .skin-arrow:hover {
  border-color: var(--accent);
  background: var(--orange-wash);
}

.pawtask-shell .skin-arrow svg {
  width: 18px;
  height: 18px;
}

.pawtask-shell .skin-arrow[data-skin-direction="-1"] svg {
  transform: rotate(180deg);
}

.pawtask-shell .skin-track {
  --card-gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * var(--card-gap)) / 5);
  gap: var(--card-gap);
  overflow: auto hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 3px 2px 6px;
  scroll-padding-inline: 2px;
}

.pawtask-shell .skin-track::-webkit-scrollbar {
  display: none;
}

.pawtask-shell .skin {
  --skin-tint: #f5e2bf;
  --skin-light: #fff7e8;
  --skin-accent: #b95d20;
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: var(--skin-light);
  color: var(--ink);
  text-align: start;
  scroll-snap-align: start;
}

.pawtask-shell .skin-art {
  position: relative;
  display: block;
  height: clamp(114px, 11.25vw, 144px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--skin-light), var(--skin-tint));
}

.pawtask-shell .skin-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--skin-light) 76%, transparent), transparent 62%);
  pointer-events: none;
}

.pawtask-shell .skin-card-window {
  position: absolute;
  top: 16.5%;
  left: 10%;
  width: 104%;
  max-width: none;
  height: auto;
  transform: rotate(-6deg);
}

.pawtask-shell .skin-card-pet {
  position: absolute;
  z-index: 1;
  left: 4%;
  bottom: 3%;
  width: 44%;
  height: 66%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 5px 5px #533b2a29);
}

.pawtask-shell .skin-name {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  padding: 9px 34px 0 14px;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 680;
  line-height: 1.2;
}

.pawtask-shell .skin[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 2px solid var(--skin-accent);
  border-radius: 14px;
  pointer-events: none;
}

.pawtask-shell .skin:focus-visible {
  outline-offset: -3px;
}

.pawtask-shell .skin[aria-pressed="true"] .skin-name {
  color: var(--skin-accent);
}

.pawtask-shell .skin[aria-pressed="true"] .skin-name::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 13px;
  width: 5px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.pawtask-shell .skin[data-skin="puppy"] {
  --skin-tint: #dce9d0;
  --skin-light: #f8f7e2;
  --skin-accent: #596d40;
}

.pawtask-shell .skin[data-skin="pastel-lamb"] {
  --skin-tint: #edcfdd;
  --skin-light: #fff2f4;
  --skin-accent: #8d537c;
}

.pawtask-shell .skin[data-skin="xiaohongshu-red-panda"] {
  --skin-tint: #f2cabb;
  --skin-light: #fff4e5;
  --skin-accent: #ac3e43;
}

.pawtask-shell .skin[data-skin="puppy-leather"] {
  --skin-tint: #e7c5a4;
  --skin-light: #fcf0dc;
  --skin-accent: #805338;
}

.pawtask-shell .skin[data-skin="douyin-penguin"] {
  --skin-tint: #aabbe0;
  --skin-light: #edf3ff;
  --skin-accent: #2b6488;
}

.pawtask-shell .feature + .feature {
  border-top: 1px solid var(--rule);
}

.pawtask-shell .pawtask-discovery + .feature .feature-inner {
  padding-block-start: 30px;
}

.pawtask-shell .feature-inner {
  display: grid;
  grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr);
  align-items: center;
  gap: clamp(36px,6vw,92px);
  padding-block: 58px;
}

.pawtask-shell .feature.reverse .feature-inner {
  grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr);
}

.pawtask-shell .feature.reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.pawtask-shell .feature.reverse figure {
  grid-column: 1;
  grid-row: 1;
}

.pawtask-shell .feature:nth-of-type(odd) {
  background: #faf7ef;
}

.pawtask-shell .feature h2 {
  margin: 0;
  font-size: clamp(34px,4.5vw,58px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.pawtask-shell .feature h2 + p {
  margin-top: 18px;
  color: var(--orange-ink);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 650;
}

.pawtask-shell .feature-points {
  margin: 12px 0 0;
  padding-inline-start: 1.2em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  list-style: disc outside;
}

.pawtask-shell .feature-points li + li {
  margin-block-start: 7px;
}

.pawtask-shell .feature-points li::marker {
  color: var(--orange-ink);
}

.pawtask-shell .feature-points strong {
  color: var(--ink);
}

.pawtask-shell .feature-upgrade {
  margin-block-start: 20px;
}

.pawtask-shell .feature-upgrade h3 {
  margin: 0;
  color: var(--orange-ink);
  font-size: 15px;
  font-weight: 700;
}

.pawtask-shell .feature-upgrade .feature-points {
  margin-block-start: 7px;
}

.pawtask-shell figure {
  margin: 0;
  min-width: 0;
}

.pawtask-shell .figure-stage {
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 27px 26px;
  background: radial-gradient(ellipse at 72% 14%, #fff9e9 5%, #f6ecda 85%);
  border: 1px solid #efe3cf;
  border-radius: 21px;
}

.pawtask-shell .feature.reverse .figure-stage {
  background: radial-gradient(ellipse at 65% 24%, #fff8ef, #f8e8d7 94%);
  border-color: #f0decb;
}

.pawtask-shell .figure-stage img {
  max-height: 432px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 13px 12px #54402020);
}

.pawtask-shell figcaption {
  margin-top: 10px;
  text-align: right;
  font-size: 12px;
  color: #74695d;
}

.pawtask-shell .reminder .figure-stage {
  position: relative;
  min-height: 304px;
  gap: 9px;
  grid-template-columns: minmax(115px,1fr) minmax(180px,1.5fr);
}

.pawtask-shell .reminder .figure-stage .reminder-pet {
  max-height: 180px;
  align-self: end;
}

.pawtask-shell .reminder .figure-stage .reminder-ui {
  max-height: none;
  width: min(100%,353px);
}

.pawtask-shell .contacts {
  padding-block: 34px;
  border-top: 1px solid #f2ddc2;
  background: var(--orange-wash);
}

.pawtask-shell .contact-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,354px);
  align-items: center;
  gap: clamp(26px,5vw,72px);
  width: min(100% - 232px,1000px);
  margin-inline: auto;
}

.pawtask-shell .business-copy h2 {
  color: var(--orange-ink);
  font-size: clamp(25px,3vw,37px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.pawtask-shell .business-copy p {
  max-width: 32em;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.pawtask-shell .business-copy p + p {
  margin-top: 6px;
}

.pawtask-shell .social-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 168px));
  justify-content: center;
  gap: 16px;
}

.pawtask-shell .social-code {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-bottom: 13px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--social-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--social-accent) 22%, transparent);
}

.pawtask-shell .social-code--wechat {
  --social-accent: #07c160;
}

.pawtask-shell .social-code--xiaohongshu {
  --social-accent: #ff2442;
}

.pawtask-shell .social-code-qr {
  width: min(100% - 20px, 142px);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.pawtask-shell .social-code figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding-inline: 8px;
  color: #1c100e;
  font-size: 14px;
  font-weight: 650;
}

.pawtask-shell .social-code-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.pawtask-shell .download-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--orange-ink);
}

.pawtask-shell .download-status:empty {
  display: none;
}

.pawtask-shell .download:disabled {
  opacity: .7;
  cursor: wait;
}

.pawtask-home .site-suggestion-fab {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 10px);
  width: 100px;
}

.pawtask-download-dialog {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: clamp(22px, 6vw, 30px);
  border: 1px solid #ecd5bd;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, #ffe8cb, transparent 62%), #fffaf2;
  box-shadow: 0 24px 64px rgba(73, 43, 24, .22);
  color: var(--ink);
  text-align: center;
}

.pawtask-download-dialog::backdrop {
  background: rgba(57, 43, 31, .36);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.download-dialog-product {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #503724;
  font-size: 13px;
  font-weight: 700;
}

.download-dialog-product img {
  display: block;
  filter: drop-shadow(0 5px 8px #784d292b);
}

.pawtask-download-dialog h2 {
  margin: 0;
  font-size: clamp(21px, 5vw, 24px);
  font-weight: 750;
  line-height: 1.35;
}

.pawtask-download-dialog p {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.download-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-dialog-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #edcbab;
  border-radius: 30px;
  background: #fffaf1;
  color: var(--orange-ink);
  font-size: 14px;
  font-weight: 640;
}

.download-dialog-actions button:hover {
  background: #fff0de;
}

.download-dialog-actions .download-login-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #402410;
}

.download-dialog-actions .download-login-action:hover {
  border-color: #f68b26;
  background: #f68b26;
}

@media (max-width:1050px) {
  .pawtask-shell .menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:950px) {
  .pawtask-shell .hero-inner {
    min-height: 420px;
    gap: 12px;
  }

  .pawtask-shell .skin-track {
    grid-auto-columns: calc((100% - 3 * var(--card-gap)) / 4);
  }

  .pawtask-shell .pawtask-footer .bar,
  .pawtask-footer .site-registration__company {
    justify-content: center;
    text-align: center;
  }

}

@media (max-width:850px) {
  .pawtask-shell .contacts {
    padding-block: 26px 76px;
  }

  .pawtask-shell .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(var(--pawtask-layout-width),540px);
    text-align: center;
  }

  .pawtask-shell .business-copy p {
    margin-inline: auto;
  }

}

@media (max-width:690px) {
  .pawtask-shell .hero-inner, .pawtask-shell .feature-inner, .pawtask-shell .feature.reverse .feature-inner {
    grid-template-columns: 1fr;
  }

  .pawtask-shell .hero-inner {
    padding-block: 33px 18px;
    gap: 12px;
  }

  .pawtask-shell .pawtask-hero-visual {
    margin-inline: 0;
    padding-inline-start: clamp(20px, 5vw, 35px);
  }

  .pawtask-shell .hero-pet {
    width: clamp(64px, 19vw, 119px);
  }

  .pawtask-shell .feature-card {
    padding: 9px;
  }

  .pawtask-shell .skin-track {
    --card-gap: 9px;
    grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3);
  }

  .pawtask-shell .feature .feature-inner {
    padding-block: 38px;
    gap: 20px;
  }

  .pawtask-shell .feature.reverse .feature-copy, .pawtask-shell .feature.reverse figure {
    grid-column: 1;
    grid-row: auto;
  }

  .pawtask-shell .figure-stage {
    min-height: 0;
    padding: 15px;
  }

  .pawtask-shell .contacts {
    padding-block: 20px 62px;
  }

  .pawtask-shell .social-codes {
    gap: 10px;
  }

  .pawtask-shell .footer-legal {
    font-size: 11px;
  }

  .pawtask-home .site-suggestion-fab {
    right: 10px;
    width: 76px;
  }

}

@media (max-width: 470px) {
  .pawtask-shell .lede {
    font-size: 15px;
  }

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

  .pawtask-shell .skin-track {
    grid-auto-columns: calc((100% - var(--card-gap)) / 2);
  }
}

@media (prefers-reduced-motion:reduce) {
  html:has(> .pawtask-home) {
    scroll-behavior: auto;
  }

}
