﻿





:root {
  --aftertail-paper: #f8f3ea;
  --aftertail-ink: #776758;
  --aftertail-soft-ink: #927f6f;
  --aftertail-line: rgba(135, 114, 93, 0.55);
  --aftertail-blush: #c9a894;
  --aftertail-button: #b9a18c;
  --aftertail-button-dark: #8a7563;
  --aftertail-font-ui: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei UI", system-ui, sans-serif;
  --aftertail-font-display: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
}

.aftertail-scroll {
  background: var(--aftertail-paper);
}

.aftertail-page {
  position: relative;
  min-height: 100%;
  overflow: visible;
  padding: 0;
  background: var(--aftertail-paper);
  color: var(--aftertail-ink);
  font-family: var(--aftertail-font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.58) 0%, rgba(249, 244, 236, 0.28) 31%, rgba(249, 244, 236, 0) 58%, rgba(249, 244, 236, 0.16) 86%, rgba(249, 244, 236, 0.62) 100%),
    linear-gradient(100deg, rgba(249, 244, 236, 0.48) 0%, rgba(249, 244, 236, 0.16) 44%, rgba(249, 244, 236, 0) 100%);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  filter: saturate(1.08) contrast(1.16) brightness(0.99);
  transform: translateZ(0);
}

.page-wash {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 22%;
  background: linear-gradient(180deg, rgba(248, 243, 234, 0) 0%, rgba(248, 243, 234, 0.18) 52%, rgba(248, 243, 234, 0.72) 100%);
  pointer-events: none;
}

.site-header,
.hero-copy,
.action-zone,
.service-nav {
  position: relative;
  z-index: 2;
}

.site-header {
  position: absolute;
  top: 66px;
  right: 36px;
  left: 36px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-en {
  font-size: 14px;
  font-weight: 500;
}

.brand-subtitle {
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1;
}

.menu-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-right: -6px;
  border: 0;
  background: transparent;
  color: #6e6258;
  font-size: 22px;
}

.menu-button:active {
  transform: scale(0.96);
}

.menu-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.menu-layer::before {
  position: absolute;
  inset: 0;
  background: transparent;
  content: "";
}

.menu-dismiss {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.menu-panel {
  position: absolute;
  top: 112px;
  right: 27px;
  left: auto;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: 196px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(132, 111, 94, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(248, 240, 230, 0.7));
  box-shadow:
    0 16px 34px rgba(112, 91, 73, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px) saturate(1.04);
  pointer-events: auto;
}

.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 0 7px 4px;
  border-bottom: 1px solid rgba(138, 117, 99, 0.12);
  color: #6d5e52;
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.menu-panel-header button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(132, 111, 94, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.66);
  color: #77685c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.menu-panel-header svg {
  width: 18px;
  height: 18px;
}

.menu-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.menu-panel a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 14px;
  align-items: center;
  min-height: 35px;
  gap: 8px;
  padding: 0 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6e6055;
  font-size: 12.2px;
  font-weight: 600;
  text-decoration: none;
}

.menu-panel a:active {
  background: rgba(184, 161, 140, 0.16);
}

.menu-item-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(233, 222, 211, 0.58);
  color: #8a7563;
}

.menu-item-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.65;
}

.menu-chevron {
  width: 14px;
  height: 14px;
  color: rgba(122, 106, 94, 0.72);
}

.hero-copy {
  position: absolute;
  top: 132px;
  right: 36px;
  left: 36px;
  padding-top: 0;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #6f5f52;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

.service-kicker b {
  font-weight: 500;
  color: rgba(128, 111, 96, 0.72);
}

.service-kicker span {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--aftertail-line);
}

.hero-copy h1 {
  margin: 0;
  color: #66584e;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(36px, 9.9vw, 40px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.title-rule {
  display: block;
  width: 28px;
  height: 1px;
  margin: 24px 0 23px;
  background: rgba(132, 111, 94, 0.58);
}

.intro-copy {
  margin: 0;
  color: #5f554d;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.action-zone {
  position: absolute;
  right: 36px;
  bottom: calc(var(--mobile-safe-area-height) + 78px);
  left: 36px;
  display: grid;
  gap: 9px;
  margin-top: 0;
}

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

.response-note {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8c7b6c;
  box-shadow: none;
  gap: 8px;
  font-size: 11.2px;
  font-weight: 500;
  backdrop-filter: none;
}

.response-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 0;
  padding: 0 48px;
  border-radius: 8px;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.cta-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
}

.cta-arrow {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
}

.cta.compact {
  height: 42px;
  padding: 0 36px;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.cta.compact .cta-icon {
  left: 14px;
  width: 18px;
  height: 18px;
}

.cta.primary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(194, 170, 149, 0.9), rgba(171, 145, 122, 0.94));
  color: #fffaf3;
  box-shadow:
    0 12px 24px rgba(130, 103, 82, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cta.secondary {
  border: 1px solid rgba(143, 124, 108, 0.52);
  background: rgba(255, 252, 247, 0.72);
  color: #8b7969;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}

.cta.phone {
  border: 1px solid rgba(185, 161, 140, 0.42);
  background: rgba(255, 250, 243, 0.82);
  color: #806f61;
  box-shadow:
    0 8px 20px rgba(130, 103, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.cta:active,
.response-note:active,
.service-nav button:active {
  transform: translateY(1px);
}

.service-nav {
  position: absolute;
  right: 36px;
  bottom: calc(var(--mobile-safe-area-height) + 12px);
  left: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin-top: 0;
  color: #7c6e63;
}

.service-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
}

.service-nav svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.service-nav i {
  position: absolute;
  top: 6px;
  right: 0;
  width: 1px;
  height: 35px;
  background: rgba(128, 111, 96, 0.27);
}

.about-section {
  position: relative;
  display: grid;
  padding: 46px 22px 44px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 31%),
    linear-gradient(180deg, #f8f3ea 0%, #fbf7f1 52%, #f5eee5 100%);
  color: #76675b;
}

.about-section::before {
  position: absolute;
  top: 0;
  right: 42px;
  left: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 139, 116, 0.35), transparent);
  content: "";
}

.about-inner {
  display: grid;
  gap: 14px;
}

.about-kicker {
  margin: 0;
  color: #9a7e69;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.about-section h2 {
  margin: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.about-copy {
  margin: 0;
  color: #7f7064;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.78;
}

.about-highlights {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.about-highlights article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(164, 139, 117, 0.18);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.58);
  box-shadow: 0 8px 18px rgba(117, 92, 73, 0.05);
}

.about-highlights svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(234, 223, 212, 0.72);
  color: #8a7563;
  stroke-width: 1.55;
}

.about-highlights h3 {
  margin: 0 0 3px;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.about-highlights p {
  margin: 0;
  color: #867669;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

.flow-section {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: auto;
  flex-direction: column;
  padding-bottom: calc(var(--mobile-safe-area-height) + 18px);
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.9) 0 18%, transparent 42%),
    linear-gradient(180deg, #fbf7f1 0%, #f8f2ea 100%);
  color: #776758;
}

.flow-photo-strip {
  position: relative;
  height: 112px;
  overflow: hidden;
}

.flow-photo-strip::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(248, 243, 234, 0), #fbf7f1 88%);
  content: "";
}

.flow-photo-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02) brightness(1.04);
}

.flow-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 30px 20px;
  text-align: center;
}

.flow-heading h2,
.step-copy h3,
.cremation-card h3 {
  color: #75675c;
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.flow-heading h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
}

.flow-heading > span {
  display: block;
  width: 38px;
  height: 1px;
  background: rgba(170, 143, 120, 0.48);
}

.flow-heading p {
  margin: 0;
  color: #8c7a6a;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.flow-content {
  display: grid;
  gap: 16px;
  padding: 0 22px;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(171, 146, 125, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.74);
  box-shadow: 0 8px 20px rgba(117, 92, 73, 0.06);
}

.flow-step::before {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 33px;
  width: 1px;
  background: rgba(169, 142, 118, 0.24);
  content: "";
}

.flow-step:first-child::before {
  top: 50%;
}

.flow-step:last-child::before {
  bottom: 50%;
}

.step-index,
.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.step-index {
  width: 38px;
  height: 38px;
  background: linear-gradient(180deg, rgba(174, 150, 130, 0.98), rgba(141, 119, 101, 0.98));
  color: #fffaf4;
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(128, 99, 77, 0.12);
}

.step-icon {
  width: 36px;
  height: 36px;
  background: rgba(235, 226, 216, 0.78);
  color: #8a7563;
}

.step-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.55;
}

.step-copy {
  min-width: 0;
}

.step-copy h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.22;
}

.step-copy p {
  margin: 0;
  color: #817266;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.cremation-options {
  display: grid;
  gap: 12px;
}

.cremation-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(164, 139, 117, 0.22);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow:
    0 12px 26px rgba(118, 93, 73, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.cremation-card.muted {
  background: rgba(255, 253, 249, 0.64);
}

.option-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(233, 222, 211, 0.78);
  color: #8a7563;
}

.option-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.45;
}

.cremation-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.22;
}

.option-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option-points li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #76685d;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.option-points svg {
  width: 13px;
  height: 13px;
  color: #9a8069;
  stroke-width: 1.9;
}

.cremation-card.muted .option-points svg {
  color: rgba(140, 119, 101, 0.68);
}

.route-list {
  display: grid;
  gap: 8px;
  padding-left: 56px;
}

.route-item {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(246, 238, 228, 0.66);
}

.route-item::before {
  position: absolute;
  top: -12px;
  bottom: calc(100% - 8px);
  left: -35px;
  width: 35px;
  border-bottom: 1px solid rgba(166, 139, 116, 0.28);
  border-left: 1px solid rgba(166, 139, 116, 0.28);
  border-radius: 0 0 0 8px;
  content: "";
}

.route-item svg {
  width: 22px;
  height: 22px;
  color: #8a7563;
  stroke-width: 1.45;
}

.route-item strong {
  display: block;
  color: #75675c;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.22;
}

.route-item span {
  display: block;
  margin-top: 3px;
  color: #88786a;
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.35;
}

.flow-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 0;
  margin: 16px 22px 0;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(187, 161, 138, 0.95), rgba(158, 132, 109, 0.98));
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(121, 96, 78, 0.12);
  overflow: hidden;
}

.flow-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  gap: 9px;
  color: inherit;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.flow-action svg {
  width: 22px;
  height: 22px;
}

.flow-action + .flow-action::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  background: rgba(255, 250, 244, 0.42);
  content: "";
}

.pricing-section {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 58px 22px calc(var(--mobile-safe-area-height) + 22px);
  background:
    radial-gradient(circle at 82% 4%, rgba(197, 168, 148, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #fbf8f2 42%, #f4eee5 100%);
  color: #76675b;
}

.pricing-heading {
  display: grid;
  gap: 8px;
  text-align: left;
}

.pricing-kicker {
  margin: 0;
  color: #9b7c69;
  font-family: "Noto Serif TC", serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.pricing-heading h2 {
  margin: 0;
  color: #716358;
  font-family: "Noto Serif TC", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}

.pricing-heading p {
  margin: 0;
  color: #877669;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.pricing-panel,
.included-blocks article,
.extra-fees {
  border: 1px solid rgba(164, 139, 117, 0.22);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.76);
  box-shadow:
    0 12px 28px rgba(117, 92, 73, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.pricing-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-tabs button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 9px 6px;
  border: 1px solid rgba(164, 139, 117, 0.23);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.58);
  color: #7a6a5e;
  font: inherit;
  text-align: center;
}

.profile-tabs button.active {
  border-color: rgba(147, 119, 96, 0.56);
  background: linear-gradient(180deg, rgba(181, 154, 132, 0.96), rgba(143, 119, 99, 0.98));
  color: #fffaf4;
  box-shadow: 0 8px 18px rgba(129, 100, 79, 0.13);
}

.profile-tabs span {
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.profile-tabs small {
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.82;
}

.weight-control {
  display: grid;
  gap: 10px;
  padding: 13px 12px 11px;
  border-radius: 8px;
  background: rgba(245, 238, 229, 0.68);
}

.weight-control > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.weight-control span {
  color: #827266;
  font-size: 12px;
  font-weight: 500;
}

.weight-control strong {
  color: #6f6258;
  font-family: "Noto Serif TC", serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.kg-slider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 28px;
  margin: 0;
  cursor: pointer;
  touch-action: none;
}

.kg-slider:focus-visible {
  outline: 2px solid rgba(151, 121, 96, 0.45);
  outline-offset: 4px;
}

.kg-slider-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(171, 146, 125, 0.24);
}

.kg-slider-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #a8876e;
}

.kg-slider-track b {
  position: absolute;
  top: 50%;
  width: 23px;
  height: 23px;
  border: 3px solid #fffaf4;
  border-radius: 999px;
  background: #9a7c66;
  box-shadow: 0 5px 14px rgba(118, 91, 72, 0.22);
  transform: translate(-50%, -50%);
}

.weight-control > p {
  display: flex;
  justify-content: space-between;
  margin: -4px 0 0;
}

.price-tier {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 2px solid rgba(166, 132, 105, 0.46);
  background: rgba(255, 250, 244, 0.64);
}

.price-tier span {
  color: #9a806c;
  font-size: 11px;
  font-weight: 600;
}

.price-tier strong {
  color: #6f6258;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

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

.price-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid rgba(165, 140, 118, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.8);
}

.price-card.independent {
  border-color: rgba(174, 132, 103, 0.36);
  background: rgba(255, 250, 246, 0.94);
}

.price-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-card > div svg {
  width: 18px;
  height: 18px;
  color: #8a7563;
  stroke-width: 1.55;
}

.price-card h3 {
  margin: 0;
  color: #75675c;
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.price-card > strong {
  color: #8c725f;
  font-family: "Noto Serif TC", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.price-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7c6d62;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.2;
}

.price-card li svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #9a8069;
  stroke-width: 1.9;
}

.price-note {
  margin: -2px 0 0;
  color: #8a7a6d;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.55;
}

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

.included-blocks article {
  padding: 13px 12px;
}

.included-blocks h3,
.extra-heading h3 {
  margin: 0;
  color: #75675c;
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.included-blocks ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.included-blocks li {
  position: relative;
  padding-left: 13px;
  color: #77695e;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.45;
}

.included-blocks li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ad8d73;
  content: "";
}

.extra-fees {
  display: grid;
  padding: 14px;
}

.extra-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
}

.extra-heading svg {
  width: 18px;
  height: 18px;
  color: #8a7563;
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(155, 130, 109, 0.18);
}

.extra-row strong {
  display: block;
  color: #716358;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.extra-row span {
  display: block;
  margin-top: 3px;
  color: #8b7b6d;
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.45;
}

.extra-row b {
  color: #8c725f;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pricing-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(187, 161, 138, 0.95), rgba(158, 132, 109, 0.98));
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(121, 96, 78, 0.12);
  overflow: hidden;
}

.pricing-section {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0 22px calc(var(--mobile-safe-area-height) + 24px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(180deg, #faf6ef 0%, #f6efe6 52%, #fbf7f1 100%);
  color: #75665b;
}

.pricing-photo {
  position: relative;
  height: 178px;
  margin: 0 -22px -12px;
  overflow: hidden;
}

.pricing-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0) 0%, rgba(250, 246, 239, 0.36) 62%, #faf6ef 100%),
    linear-gradient(90deg, rgba(250, 246, 239, 0.12), rgba(250, 246, 239, 0.58));
  content: "";
}

.pricing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.03) brightness(1.06);
}

.pricing-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 0 8px 3px;
  text-align: center;
}

.pricing-kicker {
  margin: 0;
  color: #917967;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.pricing-heading h2 {
  margin: 0;
  color: #74665c;
  font-family: "Noto Serif TC", serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 1.12;
}

.pricing-heading > span {
  display: block;
  width: 112px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 150, 127, 0.7), transparent);
}

.pricing-heading p:last-child {
  margin: 0;
  color: #8a796b;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.pricing-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(164, 139, 117, 0.2);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow:
    0 22px 48px rgba(109, 84, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(139, 111, 92, 0.05);
  backdrop-filter: blur(16px);
}

.pricing-control-group {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.pet-control {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(145, 118, 98, 0.14);
}

.pricing-control-title {
  display: block;
  color: #76675b;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.step-badge {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-top: -1px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(186, 151, 128, 0.96), rgba(153, 124, 102, 0.98));
  color: #fffaf4;
  font-family: "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(131, 101, 79, 0.12);
}

.step-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid rgba(164, 139, 117, 0.21);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.66);
  color: #7b6a5e;
  font: inherit;
  text-align: center;
}

.profile-tabs button.active {
  border-color: rgba(161, 120, 96, 0.5);
  background: linear-gradient(180deg, rgba(188, 153, 130, 0.94), rgba(155, 124, 102, 0.98));
  color: #fffaf4;
  box-shadow: 0 8px 16px rgba(122, 94, 74, 0.14);
}

.profile-tabs svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.profile-tabs span {
  overflow: hidden;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cremation-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cremation-toggle button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(150, 124, 105, 0.23);
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.64);
  color: #75675c;
  font: inherit;
  text-align: center;
}

.cremation-toggle button.active {
  border-color: rgba(150, 111, 88, 0.48);
  background: linear-gradient(180deg, rgba(183, 145, 121, 0.97), rgba(151, 119, 96, 0.98));
  color: #fffaf5;
  box-shadow:
    0 8px 18px rgba(129, 99, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cremation-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.45;
}

.cremation-toggle span {
  min-width: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.mode-note {
  display: grid;
  grid-template-columns: 18px minmax(0, auto);
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 242, 232, 0.62);
  color: #876f5d;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.mode-note.independent {
  background: rgba(247, 240, 230, 0.74);
}

.mode-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #9d7b64;
  stroke-width: 1.7;
}

.weight-control {
  display: grid;
  gap: 9px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(161, 134, 113, 0.14);
  border-radius: 11px;
  background: rgba(255, 252, 247, 0.54);
}

.weight-summary {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-top: 0;
  text-align: center;
}

.weight-control .weight-summary {
  align-items: center;
}

.weight-control .weight-summary span {
  color: #827266;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.weight-control .weight-summary strong {
  color: #726357;
  font-family: "Noto Serif TC", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kg-slider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 25px;
  cursor: pointer;
  touch-action: none;
}

.kg-slider-track {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(155, 132, 112, 0.22);
}

.kg-slider-track::before {
  position: absolute;
  inset: -7px 0;
  background-image: repeating-linear-gradient(90deg, rgba(139, 115, 96, 0.28) 0 1px, transparent 1px 12.5%);
  opacity: 0.48;
  content: "";
}

.kg-slider-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c6967c, #9d765f);
}

.kg-slider-track b {
  position: absolute;
  top: 50%;
  width: 21px;
  height: 21px;
  border: 3px solid rgba(255, 252, 248, 0.96);
  border-radius: 999px;
  background: #a77d65;
  box-shadow:
    0 7px 16px rgba(116, 88, 69, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
}

.kg-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -1px;
  padding: 0 1px;
  color: #8a7a6d;
  font-family: "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.calculated-price {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 12px 13px;
  border: 1px solid rgba(226, 213, 199, 0.92);
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 26%, rgba(212, 163, 137, 0.18), transparent 36%),
    rgba(255, 253, 249, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px rgba(122, 96, 76, 0.06);
  text-align: center;
}

.calculated-price span,
.service-included span {
  color: #907b6c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.calculated-price strong {
  display: block;
  min-height: 38px;
  color: #a87662;
  font-family: var(--aftertail-font-ui);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.calculated-price em {
  max-width: 260px;
  color: #75675c;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.alternate-price {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(151, 124, 103, 0.14);
  border-radius: 9px;
  background: rgba(255, 252, 248, 0.5);
  color: #76685d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.38;
}

.alternate-price svg:first-child {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(239, 230, 220, 0.72);
  color: #8a7563;
}

.alternate-price svg:last-child {
  width: 18px;
  height: 18px;
  color: #9a806c;
}

.alternate-price b {
  color: #8d6f5d;
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
}

.service-included {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(244, 237, 228, 0.74);
}

.service-included strong {
  min-width: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.pricing-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 12px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow: visible;
}

.pricing-contact .flow-action {
  min-height: 49px;
  border: 1px solid rgba(150, 124, 105, 0.36);
  border-radius: 8px;
  color: #7e6d60;
  background: rgba(255, 252, 248, 0.68);
  box-shadow: 0 8px 18px rgba(121, 96, 78, 0.06);
}

.pricing-contact .flow-action.call {
  border-color: rgba(157, 119, 95, 0.28);
  background: linear-gradient(180deg, rgba(190, 147, 124, 0.96), rgba(154, 121, 98, 0.98));
  color: #fffaf4;
}

.pricing-contact .flow-action + .flow-action::before {
  content: none;
}

.pricing-detail-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.pricing-detail-list article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(164, 139, 117, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.58);
  box-shadow: 0 10px 22px rgba(117, 92, 73, 0.05);
}

.pricing-detail-list h3 {
  margin: 0;
  color: #75675c;
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.pricing-detail-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-detail-list li {
  position: relative;
  padding-left: 12px;
  color: #7b6c60;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.38;
}

.pricing-detail-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ad8d73;
  content: "";
}

.fee-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(151, 124, 103, 0.14);
}

.fee-chip span {
  color: #7b6c60;
  font-size: 12px;
  font-weight: 500;
}

.fee-chip b {
  color: #8d6f5d;
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 600;
}

.price-note {
  position: relative;
  z-index: 1;
  margin: -3px 0 0;
  color: #8a7a6d;
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.info-page {
  min-height: 100%;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #faf6ef 0%, #f5eee5 100%);
}

.info-hero {
  display: grid;
  gap: 10px;
  padding: 72px 22px 34px;
  color: #73655a;
}

.info-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(151, 124, 103, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.58);
  color: #75665b;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(117, 92, 73, 0.05);
}

.info-back svg {
  width: 15px;
  height: 15px;
}

.info-hero > p:first-of-type {
  margin: 10px 0 0;
  color: #9a7e69;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
}

.info-hero h1 {
  margin: 0;
  color: #66584e;
  font-family: "Noto Serif TC", serif;
  font-size: 37px;
  font-weight: 600;
  line-height: 1.16;
}

.info-hero > span {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(132, 111, 94, 0.46);
}

.info-hero > p:last-child {
  margin: 0;
  color: #74665b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.72;
}

.info-blog-section {
  padding-top: 34px;
}

.info-cta {
  display: grid;
  gap: 12px;
  margin: 0 22px calc(var(--mobile-safe-area-height) + 28px);
  padding: 17px 15px;
  border: 1px solid rgba(164, 139, 117, 0.2);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.68);
  box-shadow:
    0 12px 26px rgba(117, 92, 73, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.info-cta h2 {
  margin: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.22;
}

.info-cta p {
  margin: 0;
  color: #817266;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}

.info-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 9px;
}

.info-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 8px;
  border-radius: 8px;
  color: #fffaf4;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.info-actions a:first-child {
  background: linear-gradient(180deg, #8fcfa3 0%, #6fbd8a 48%, #5aa878 100%);
}

.info-actions a:last-child {
  background: linear-gradient(180deg, rgba(190, 147, 124, 0.96), rgba(154, 121, 98, 0.98));
}

.info-actions svg {
  width: 19px;
  height: 19px;
}

.faq-section {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 52px 22px calc(var(--mobile-safe-area-height) + 28px);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f5eee5 100%);
  color: #75665b;
}

.faq-section::before {
  position: absolute;
  top: 0;
  right: 42px;
  left: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 139, 116, 0.34), transparent);
  content: "";
}

.faq-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.faq-heading > p:first-child {
  margin: 0;
  color: #9a7e69;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.faq-heading h2 {
  margin: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.16;
}

.faq-heading > span {
  width: 98px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 150, 127, 0.68), transparent);
}

.faq-heading > p:last-child {
  max-width: 310px;
  margin: 0;
  color: #837366;
  font-size: 12.6px;
  font-weight: 500;
  line-height: 1.68;
}

.faq-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.faq-item {
  border: 1px solid rgba(164, 139, 117, 0.2);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.68);
  box-shadow:
    0 10px 22px rgba(117, 92, 73, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 13px;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 17px;
  height: 17px;
  color: #9a806c;
  transition: transform 160ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(90deg);
}

.faq-item p {
  margin: -2px 0 0;
  padding: 0 13px 14px;
  color: #817266;
  font-size: 12.4px;
  font-weight: 500;
  line-height: 1.65;
}

.faq-info-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border: 1px solid rgba(151, 124, 103, 0.28);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.66);
  color: #806d5e;
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(117, 92, 73, 0.06);
}

.faq-info-link svg {
  width: 18px;
  height: 18px;
}

.blog-section {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 52px 22px calc(var(--mobile-safe-area-height) + 28px);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f5eee5 100%);
  color: #75665b;
}

.blog-section::before {
  position: absolute;
  top: 0;
  right: 42px;
  left: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 139, 116, 0.34), transparent);
  content: "";
}

.blog-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.blog-heading > p:first-child {
  margin: 0;
  color: #9a7e69;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.blog-heading h2 {
  margin: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.16;
}

.blog-heading > span {
  width: 98px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 150, 127, 0.68), transparent);
}

.blog-heading > p:last-child {
  max-width: 310px;
  margin: 0;
  color: #837366;
  font-size: 12.6px;
  font-weight: 500;
  line-height: 1.68;
}

.blog-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.blog-card {
  display: grid;
  gap: 9px;
  padding: 15px 15px 13px;
  border: 1px solid rgba(164, 139, 117, 0.2);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.68);
  box-shadow:
    0 12px 26px rgba(117, 92, 73, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.blog-category {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(235, 225, 214, 0.72);
  color: #8a705f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.blog-card h3 {
  margin: 0;
  color: #73655a;
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.34;
}

.blog-card p {
  margin: 0;
  color: #817266;
  font-size: 12.4px;
  font-weight: 500;
  line-height: 1.65;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}

.blog-card-footer small {
  color: #958272;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.blog-card-footer a,
.blog-card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a6d5b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.blog-card-footer svg {
  width: 14px;
  height: 14px;
}

.flow-contact .flow-action.whatsapp,
.pricing-contact .flow-action.whatsapp {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #8fcfa3 0%, #6fbd8a 48%, #5aa878 100%);
  color: #fffdf8;
  box-shadow:
    0 10px 22px rgba(79, 150, 104, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.flow-action.whatsapp svg {
  color: currentColor;
}

.brand-name,
.hero-copy h1,
.about-section h2,
.flow-heading h2,
.pricing-heading h2,
.info-hero h1,
.faq-heading h2,
.blog-heading h2 {
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(35px, 9.2vw, 38px);
  line-height: 1.28;
}

.about-section h2,
.flow-heading h2,
.faq-heading h2,
.blog-heading h2 {
  font-size: 30px;
  line-height: 1.24;
}

.pricing-heading h2,
.info-hero h1 {
  font-size: 34px;
  line-height: 1.18;
}

.service-kicker,
.about-kicker,
.flow-heading p,
.pricing-kicker,
.pricing-heading p:last-child,
.info-hero > p:first-of-type,
.faq-heading > p:first-child,
.blog-heading > p:first-child {
  font-family: var(--aftertail-font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.intro-copy,
.about-copy,
.step-copy p,
.option-points li,
.route-item span,
.pricing-heading p,
.mode-note,
.calculated-price em,
.alternate-price,
.pricing-detail-list li,
.fee-chip span,
.price-note,
.info-hero > p:last-child,
.info-cta p,
.faq-heading > p:last-child,
.faq-item p,
.blog-card p {
  font-family: var(--aftertail-font-ui);
  font-weight: 400;
  line-height: 1.72;
}

.menu-panel-header,
.menu-panel a,
.cta,
.flow-action,
.pricing-control-title,
.profile-tabs span,
.cremation-toggle span,
.calculated-price span,
.service-included span,
.faq-item summary,
.faq-info-link,
.blog-category,
.blog-card-footer small,
.blog-card-footer a,
.blog-card-footer button,
.info-back,
.info-actions a {
  font-family: var(--aftertail-font-ui);
  font-weight: 500;
}

.about-highlights h3,
.step-copy h3,
.cremation-card h3,
.route-item strong,
.pricing-detail-list h3,
.info-cta h2,
.blog-card h3,
.service-included strong {
  color: #6f6258;
  font-family: var(--aftertail-font-ui);
  font-weight: 600;
  line-height: 1.32;
}

.brand-name {
  font-weight: 500;
}

.brand-en,
.brand-subtitle {
  font-family: var(--aftertail-font-ui);
}

.brand-subtitle {
  color: #7b6b5f;
  font-size: 8px;
  font-weight: 500;
}

.title-rule {
  margin: 20px 0 18px;
}

.about-section,
.faq-section,
.blog-section {
  padding-top: 48px;
}

.flow-content,
.pricing-section,
.faq-section,
.blog-section {
  gap: 13px;
}

.about-inner {
  gap: 12px;
}

.about-highlights article,
.flow-step,
.cremation-card,
.pricing-panel,
.pricing-detail-list article,
.faq-item,
.blog-card,
.info-cta {
  border-color: rgba(151, 124, 103, 0.16);
  background-color: rgba(255, 253, 249, 0.62);
  box-shadow:
    0 8px 18px rgba(117, 92, 73, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.pricing-panel,
.blog-card,
.cremation-card {
  backdrop-filter: blur(6px);
}

.about-highlights article {
  padding: 10px 11px;
}

.flow-step {
  padding: 11px 13px;
}

.step-copy h3 {
  font-size: 17px;
}

.cremation-card h3 {
  font-size: 18px;
}

.route-item strong {
  font-size: 14px;
}

.pricing-control-title {
  font-size: 13px;
}

.profile-tabs span,
.cremation-toggle span {
  font-size: 14px;
}

.weight-control .weight-summary strong,
.kg-slider-scale,
.alternate-price b,
.fee-chip b {
  font-family: var(--aftertail-font-display);
}

.weight-control .weight-summary strong {
  font-size: 38px;
  font-weight: 500;
}

.calculated-price strong {
  font-family: var(--aftertail-font-ui);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.08;
}

.faq-item summary {
  min-height: 50px;
  color: #6f6258;
  font-size: 14px;
  line-height: 1.42;
}

.faq-item p {
  color: #74665b;
  font-size: 12.2px;
}

.blog-card h3 {
  font-size: 17px;
}

@media (max-width: 370px) {
  .site-header,
  .hero-copy,
  .action-zone,
  .service-nav {
    right: 30px;
    left: 30px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-en {
    font-size: 13px;
  }

  .menu-panel {
    right: 20px;
    left: auto;
    width: 188px;
    padding: 10px;
  }

  .menu-links {
    gap: 2px;
  }

  .menu-panel a {
    grid-template-columns: 24px minmax(0, 1fr) 12px;
    gap: 7px;
    padding: 0 7px;
    font-size: 11.8px;
  }

  .menu-item-icon {
    width: 24px;
    height: 24px;
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .about-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .about-section h2 {
    font-size: 27px;
  }

  .flow-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .flow-step {
    grid-template-columns: 36px 34px minmax(0, 1fr);
    gap: 9px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .flow-step::before {
    left: 29px;
  }

  .step-index {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .step-icon {
    width: 32px;
    height: 32px;
  }

  .cremation-card {
    padding: 13px;
  }

  .route-list {
    padding-left: 48px;
  }

  .flow-action {
    font-size: 14px;
  }

  .pricing-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .info-hero,
  .faq-section,
  .blog-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .info-cta {
    margin-right: 18px;
    margin-left: 18px;
  }

  .info-hero h1,
  .faq-heading h2,
  .blog-heading h2 {
    font-size: 31px;
  }

  .profile-tabs {
    gap: 5px;
  }

  .profile-tabs span {
    font-size: 14px;
  }

  .profile-tabs small {
    font-size: 8.5px;
  }

  .price-card > strong {
    font-size: 22px;
  }

  .included-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body,
  #root {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--aftertail-paper);
    overflow: hidden;
  }

  body {
    min-width: 0;
  }

  .phone-stage {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: var(--aftertail-paper);
  }

  .phone-scale-box,
  .phone-device,
  .device-screen,
  .mobile-app-viewport,
  .mobile-page,
  .mobile-scroll {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .phone-scale-box {
    position: fixed !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .device-screen {
    --device-safe-area-bottom: env(safe-area-inset-bottom, 0px) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: auto;
  }

  .mobile-app-viewport[data-platform="android"][data-keyboard-visible="false"] {
    bottom: 0 !important;
  }

  .mobile-scroll {
    bottom: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
  }

  .mobile-scroll-content {
    min-height: 100%;
  }

  .device-menu-bar,
  .phone-bezel,
  .status-bar,
  .device-camera,
  .mobile-cursor,
  .home-indicator-svg,
  .android-navigation-bar,
  .keyboard-dock {
    display: none !important;
  }

  .device-screen,
  .device-screen * {
    cursor: auto !important;
  }

  .hero-section {
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
}

/* Production site mode: remove the preview phone shell on every real viewport. */
html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--aftertail-paper);
}

body {
  min-width: 0;
  overflow: hidden;
}

.phone-stage {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--aftertail-paper);
}

.phone-scale-box,
.phone-device,
.device-screen,
.mobile-app-viewport,
.mobile-page,
.mobile-scroll {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.phone-scale-box {
  position: fixed !important;
  height: 100vh !important;
  height: 100dvh !important;
}

.device-screen {
  --device-safe-area-bottom: env(safe-area-inset-bottom, 0px) !important;
  border-radius: 0 !important;
  background: var(--aftertail-paper) !important;
  box-shadow: none !important;
  cursor: auto;
}

.mobile-app-viewport[data-platform="android"][data-keyboard-visible="false"] {
  bottom: 0 !important;
}

.mobile-scroll {
  bottom: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  touch-action: pan-y;
  user-select: auto;
}

.mobile-scroll-content {
  min-height: 100%;
  transform: none !important;
}

.device-menu-bar,
.phone-bezel,
.status-bar,
.device-camera,
.mobile-cursor,
.home-indicator-svg,
.android-navigation-bar,
.keyboard-dock,
.mobile-scrollbar {
  display: none !important;
}

.device-screen,
.device-screen * {
  cursor: auto !important;
}

.hero-section {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

@media (min-width: 761px) {
  .aftertail-page {
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 28%),
      linear-gradient(180deg, #faf6ef 0%, #f4ebdf 48%, #fbf8f2 100%);
  }

  .hero-section {
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1fr);
    align-items: center;
    align-content: center;
    column-gap: clamp(42px, 6vw, 92px);
    row-gap: 0;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 680px !important;
    padding: 96px clamp(54px, 7vw, 128px) 50px;
  }

  .hero-section::after {
    background:
      linear-gradient(90deg, rgba(250, 246, 239, 0.98) 0%, rgba(250, 246, 239, 0.9) 40%, rgba(250, 246, 239, 0.38) 62%, rgba(250, 246, 239, 0.02) 100%),
      linear-gradient(180deg, rgba(250, 246, 239, 0.34) 0%, rgba(250, 246, 239, 0) 44%, rgba(250, 246, 239, 0.56) 100%);
  }

  .hero-photo {
    right: 0;
    left: auto;
    width: min(49vw, 780px);
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(1.08) contrast(1.12) brightness(1.02);
  }

  .page-wash {
    height: 30%;
    background: linear-gradient(180deg, rgba(248, 243, 234, 0), rgba(248, 243, 234, 0.72));
  }

  .site-header {
    top: 30px;
    right: clamp(54px, 7vw, 128px);
    left: clamp(54px, 7vw, 128px);
    max-width: 1240px;
    min-height: 58px;
    margin: 0 auto;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    margin-right: 13px;
  }

  .brand-copy {
    gap: 5px;
  }

  .brand-name {
    gap: 10px;
    font-size: 25px;
  }

  .brand-en {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(122, 100, 82, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.54);
    box-shadow: 0 12px 28px rgba(112, 91, 73, 0.08);
    backdrop-filter: blur(10px);
  }

  .menu-panel {
    top: 88px;
    right: clamp(54px, 7vw, 128px);
    width: 238px;
    padding: 12px;
    border-radius: 18px;
  }

  .menu-panel-header {
    min-height: 36px;
    font-size: 15px;
  }

  .menu-panel a {
    min-height: 42px;
    grid-template-columns: 31px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 0 10px;
    font-size: 14px;
  }

  .hero-copy {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 2;
    grid-column: 1;
    max-width: 580px;
    align-self: end;
    padding-top: 0;
  }

  .service-kicker {
    gap: 12px;
    margin-bottom: 28px;
    font-size: 15px;
  }

  .service-kicker span {
    height: 18px;
  }

  .hero-copy h1 {
    color: #5f534b;
    font-size: clamp(58px, 5vw, 80px);
    line-height: 1.16;
  }

  .title-rule {
    width: 46px;
    margin: 30px 0 26px;
  }

  .intro-copy {
    font-size: 17px;
    line-height: 1.95;
  }

  .action-zone {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    grid-column: 1;
    width: min(480px, 100%);
    margin-top: 30px;
    gap: 12px;
  }

  .cta {
    height: 58px;
    border-radius: 10px;
    font-size: 17px;
  }

  .cta.compact {
    height: 48px;
    font-size: 14px;
  }

  .response-note {
    justify-self: start;
    min-height: 30px;
    padding: 0;
    font-size: 13px;
  }

  .service-nav {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    grid-column: 1;
    width: min(480px, 100%);
    margin-top: 22px;
  }

  .service-nav button {
    gap: 10px;
    font-size: 13px;
  }

  .service-nav svg {
    width: 30px;
    height: 30px;
  }

  .about-section,
  .flow-section,
  .pricing-section,
  .faq-section,
  .blog-section {
    padding-right: clamp(54px, 7vw, 128px);
    padding-left: clamp(54px, 7vw, 128px);
  }

  .about-section {
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .about-inner {
    grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 1fr);
    gap: 28px 64px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .about-kicker,
  .about-section h2,
  .about-copy {
    grid-column: 1;
  }

  .about-section h2 {
    max-width: 520px;
    font-size: clamp(38px, 3.2vw, 52px);
  }

  .about-copy {
    max-width: 520px;
    font-size: 16px;
  }

  .about-highlights {
    grid-column: 2;
    grid-row: 1 / span 3;
    gap: 14px;
    margin-top: 0;
  }

  .about-highlights article {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 17px;
    padding: 20px 22px;
    border-radius: 12px;
  }

  .about-highlights svg {
    width: 54px;
    height: 54px;
    padding: 13px;
  }

  .about-highlights h3 {
    font-size: 20px;
  }

  .about-highlights p {
    font-size: 14px;
  }

  .flow-section {
    padding-top: 0;
    padding-bottom: 104px;
  }

  .flow-photo-strip {
    height: 260px;
    margin-right: calc(clamp(54px, 7vw, 128px) * -1);
    margin-left: calc(clamp(54px, 7vw, 128px) * -1);
  }

  .flow-heading {
    max-width: 720px;
    margin: 0 auto;
    padding: 58px 0 34px;
  }

  .flow-heading h2,
  .faq-heading h2,
  .blog-heading h2 {
    font-size: clamp(38px, 3vw, 48px);
  }

  .flow-heading p {
    font-size: 17px;
  }

  .flow-content {
    grid-template-columns: minmax(310px, 0.8fr) minmax(540px, 1.2fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
  }

  .flow-steps {
    gap: 13px;
  }

  .flow-step {
    grid-template-columns: 48px 46px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 18px;
    border-radius: 12px;
  }

  .step-index {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .step-icon {
    width: 42px;
    height: 42px;
  }

  .step-copy h3 {
    font-size: 20px;
  }

  .step-copy p {
    font-size: 14px;
  }

  .cremation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .cremation-card {
    min-height: 100%;
    padding: 22px;
    border-radius: 14px;
  }

  .option-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
  }

  .option-icon {
    width: 50px;
    height: 50px;
  }

  .cremation-card h3 {
    font-size: 22px;
  }

  .option-points li {
    font-size: 13px;
  }

  .route-list {
    padding-left: 66px;
  }

  .route-item {
    padding: 13px 14px;
    border-radius: 11px;
  }

  .route-item strong {
    font-size: 16px;
  }

  .route-item span {
    font-size: 12px;
  }

  .flow-contact {
    max-width: 520px;
    margin: 26px auto 0;
    border-radius: 12px;
  }

  .pricing-section {
    grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1fr);
    gap: 26px 54px;
    padding-top: 104px;
    padding-bottom: 104px;
    overflow: hidden;
  }

  .pricing-photo {
    grid-column: 1;
    grid-row: 2;
    height: 260px;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 22px 46px rgba(117, 92, 73, 0.11);
  }

  .pricing-heading {
    grid-column: 1;
    grid-row: 1;
    justify-items: start;
    align-self: end;
    padding: 0;
    text-align: left;
  }

  .pricing-heading h2 {
    font-size: clamp(42px, 3.2vw, 56px);
  }

  .pricing-heading > span {
    width: 128px;
  }

  .pricing-heading p:last-child {
    max-width: 440px;
    font-size: 17px;
  }

  .pricing-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
  }

  .profile-tabs button {
    min-height: 48px;
  }

  .profile-tabs span,
  .cremation-toggle span {
    font-size: 16px;
  }

  .cremation-toggle button {
    min-height: 58px;
  }

  .weight-control {
    padding: 16px 16px 14px;
  }

  .weight-control .weight-summary strong {
    font-size: 52px;
  }

  .kg-slider {
    height: 34px;
  }

  .kg-slider-track b {
    width: 25px;
    height: 25px;
  }

  .calculated-price {
    padding: 20px 16px 18px;
  }

  .calculated-price strong {
    min-height: 50px;
    font-size: clamp(40px, 4vw, 58px);
  }

  .calculated-price em,
  .alternate-price,
  .price-note {
    font-size: 14px;
  }

  .pricing-detail-list {
    grid-column: 1 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    width: 100%;
    margin: 16px auto 0;
  }

  .pricing-detail-list article {
    padding: 22px;
    border-radius: 16px;
  }

  .pricing-detail-list h3 {
    font-size: 21px;
  }

  .pricing-detail-list li,
  .fee-chip span {
    font-size: 14px;
  }

  .fee-chip b {
    font-size: 16px;
  }

  .pricing-section > .price-note {
    grid-column: 1 / 3;
    margin-top: 0;
    font-size: 13px;
  }

  .faq-section,
  .blog-section {
    grid-template-columns: minmax(300px, 0.76fr) minmax(520px, 1fr);
    gap: 34px 58px;
    padding-top: 104px;
    padding-bottom: 104px;
    align-items: start;
  }

  .faq-heading,
  .blog-heading {
    justify-items: start;
    text-align: left;
  }

  .faq-heading > p:last-child,
  .blog-heading > p:last-child {
    max-width: 460px;
    font-size: 15px;
  }

  .faq-list,
  .blog-list {
    gap: 12px;
  }

  .faq-item {
    border-radius: 14px;
  }

  .faq-item summary {
    min-height: 60px;
    padding: 0 18px;
    font-size: 17px;
  }

  .faq-item p {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .faq-info-link {
    grid-column: 1;
    width: fit-content;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .blog-card {
    padding: 20px;
    border-radius: 16px;
  }

  .blog-card h3 {
    font-size: 20px;
  }

  .blog-card p {
    font-size: 14px;
  }

  .info-page {
    min-height: 100%;
  }

  .info-hero,
  .info-blog-section,
  .info-cta {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
  }

  .info-hero {
    padding: 112px clamp(54px, 7vw, 128px) 52px;
  }

  .info-hero h1 {
    font-size: clamp(46px, 4vw, 64px);
  }

  .info-hero > p:last-child {
    max-width: 680px;
    font-size: 16px;
  }

  .info-blog-section {
    padding-right: clamp(54px, 7vw, 128px);
    padding-left: clamp(54px, 7vw, 128px);
  }

  .info-cta {
    margin-bottom: 86px;
    padding: 24px;
    border-radius: 16px;
  }
}

@media (max-width: 760px) {
  .hero-section::after {
    background:
      linear-gradient(180deg, rgba(249, 244, 236, 0.38) 0%, rgba(249, 244, 236, 0.12) 34%, rgba(249, 244, 236, 0) 58%, rgba(249, 244, 236, 0.12) 84%, rgba(249, 244, 236, 0.48) 100%),
      linear-gradient(100deg, rgba(249, 244, 236, 0.28) 0%, rgba(249, 244, 236, 0.08) 48%, rgba(249, 244, 236, 0) 100%);
  }

  .hero-photo {
    filter: saturate(1.12) contrast(1.18) brightness(1.02);
  }
}

/* Keep paired contact CTAs as two distinct buttons. */
.flow-contact,
.pricing-contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.flow-contact .flow-action,
.pricing-contact .flow-action {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(151, 122, 101, 0.22);
  border-radius: 10px;
  color: #fffaf4;
  box-shadow:
    0 10px 22px rgba(110, 86, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.flow-contact .flow-action + .flow-action::before,
.pricing-contact .flow-action + .flow-action::before {
  content: none;
}

.flow-contact .flow-action.whatsapp,
.pricing-contact .flow-action.whatsapp {
  border-color: rgba(102, 158, 118, 0.25);
  background: linear-gradient(180deg, rgba(136, 188, 151, 0.9), rgba(101, 161, 119, 0.94));
  color: #fffdf8;
}

.flow-contact .flow-action.call,
.pricing-contact .flow-action.call {
  border-color: rgba(154, 118, 94, 0.28);
  background: linear-gradient(180deg, rgba(190, 150, 126, 0.96), rgba(154, 122, 98, 0.98));
  color: #fffaf4;
}

@media (min-width: 761px) {
  .flow-contact {
    gap: 14px;
    max-width: 560px;
  }
}

/* Desktop hero refinement: stop the mobile composition from crowding the header. */
@media (min-width: 761px) {
  .hero-section {
    align-content: start;
    min-height: 720px !important;
    padding-top: 128px;
  }

  .site-header {
    top: 36px;
  }

  .hero-copy {
    align-self: start;
  }

  .service-kicker {
    margin-bottom: 24px;
  }

  .action-zone {
    margin-top: 22px;
    gap: 10px;
  }

  .service-nav {
    margin-top: 14px;
  }

  .title-rule {
    margin: 24px 0 20px;
  }

  .cta {
    height: 56px;
  }

  .cta.compact {
    height: 46px;
  }
}

@media (min-width: 640px) and (max-width: 760px) {
  .hero-section {
    display: block;
    min-height: 760px !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .hero-section::after {
    background:
      linear-gradient(90deg, rgba(250, 246, 239, 0.98) 0%, rgba(250, 246, 239, 0.9) 46%, rgba(250, 246, 239, 0.36) 70%, rgba(250, 246, 239, 0.08) 100%),
      linear-gradient(180deg, rgba(250, 246, 239, 0.3) 0%, rgba(250, 246, 239, 0) 46%, rgba(250, 246, 239, 0.54) 100%);
  }

  .hero-photo {
    right: 0;
    left: auto;
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(1.08) contrast(1.12) brightness(1.02);
  }

  .site-header {
    top: 36px;
    right: clamp(46px, 7vw, 60px);
    left: clamp(46px, 7vw, 60px);
    min-height: 52px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    margin-right: 12px;
  }

  .brand-name {
    gap: 9px;
    font-size: 22px;
  }

  .brand-en {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(122, 100, 82, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.5);
    box-shadow: 0 12px 28px rgba(112, 91, 73, 0.07);
    backdrop-filter: blur(10px);
  }

  .menu-panel {
    top: 94px;
    right: clamp(46px, 7vw, 60px);
  }

  .hero-copy {
    position: absolute;
    top: 156px;
    right: auto;
    left: clamp(46px, 7vw, 60px);
    width: min(430px, calc(100% - 92px));
    max-width: 430px;
  }

  .service-kicker {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 7vw, 52px);
    line-height: 1.18;
  }

  .intro-copy {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.95;
  }

  .action-zone {
    right: auto;
    bottom: calc(var(--mobile-safe-area-height) + 70px);
    left: clamp(46px, 7vw, 60px);
    width: min(430px, calc(100% - 92px));
  }

  .cta {
    height: 54px;
    font-size: 16px;
  }

  .cta.compact {
    height: 44px;
  }

  .response-note {
    justify-self: start;
    padding: 0;
    background: transparent;
  }

  .service-nav {
    right: auto;
    bottom: calc(var(--mobile-safe-area-height) + 10px);
    left: clamp(46px, 7vw, 60px);
    width: min(430px, calc(100% - 92px));
  }
}

/* Six independent pages, using the selected warm photographic design. */
.aftertail-page a,
.aftertail-page button {
  -webkit-tap-highlight-color: transparent;
}

.aftertail-page :focus-visible,
.site-navigation :focus-visible {
  outline: 2px solid #8a7563;
  outline-offset: 4px;
}

.aftertail-skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 18px;
  padding: 12px 18px;
  border: 1px solid var(--aftertail-line);
  border-radius: 8px;
  background: var(--aftertail-paper);
  color: var(--aftertail-ink);
  font: 14px var(--aftertail-font-ui);
  text-decoration: none;
  transform: translateY(-180%);
}

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

.plan-booking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(151, 124, 103, 0.28);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.72);
  color: #6b594a;
  font: 500 13px var(--aftertail-font-ui);
  text-decoration: none;
}

.article-notes {
  grid-column: 1 / -1;
  max-width: 1180px;
  padding: 28px 22px;
  margin: 28px auto 0;
  border: 1px solid rgba(151, 124, 103, 0.24);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.76);
  color: var(--aftertail-ink);
}

.article-notes-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.article-notes-heading p { font-size: 12px; color: var(--aftertail-soft-ink); }
.article-notes-heading button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(151, 124, 103, 0.2); border-radius: 8px; color: var(--aftertail-ink); background: transparent; font: 12px var(--aftertail-font-ui); cursor: pointer; }
.article-notes h3 { font: 500 22px/1.6 var(--aftertail-font-display); margin: 18px 0; color: #685c52; }
.article-notes > p { font: 14px/2 var(--aftertail-font-ui); }
.article-notes > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: #6b594a; font: 500 14px var(--aftertail-font-ui); }

.menu-button {
  min-width: 44px;
  min-height: 44px;
}

dialog.site-navigation {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--aftertail-ink);
  font-family: var(--aftertail-font-ui);
}

.site-navigation::backdrop {
  background: rgba(100, 81, 66, 0.13);
}

.site-navigation .menu-dismiss {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 0;
}

.site-navigation .menu-panel {
  position: fixed;
  top: 86px;
  right: 30px;
  width: 228px;
  max-width: calc(100vw - 44px);
  max-height: calc(100dvh - 110px);
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-navigation .menu-panel-header {
  min-height: 44px;
}

.site-navigation .menu-panel-header button {
  width: 44px;
  height: 44px;
}

.site-navigation .menu-panel a {
  min-height: 44px;
  font-size: 13px;
}

.site-navigation .menu-panel a[aria-current="page"] {
  background: rgba(184, 161, 140, 0.16);
  color: #6b594a;
}

.subpage-shell {
  min-height: 100dvh;
  background: linear-gradient(180deg, #faf6ef 0%, #f8f3ea 52%, #fbf7f1 100%);
}

.subpage-masthead {
  padding: 32px 22px 20px;
}

.subpage-masthead .site-header {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 1180px;
  min-height: 48px;
  margin: 0 auto;
}

.subpage-intro {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px 22px 36px;
  color: #73655a;
}

.page-number,
.page-kicker {
  margin: 0;
  color: #9a7e69;
  font-family: var(--aftertail-font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.page-number {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.subpage-intro h1 {
  margin: 0;
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.34;
}

.subpage-intro > p:not(.page-kicker):not(.page-number) {
  max-width: 640px;
  margin: 0;
  color: #7f7064;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

.subpage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 28px;
}

.subpage-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(151, 124, 103, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.58);
  color: #75665b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.route-section {
  min-width: 0;
}

.route-section [id] {
  scroll-margin-top: 20px;
}

.route-section > .about-section,
.route-section > .faq-section,
.route-section > .blog-section {
  padding-top: 36px;
}

.home-page-links {
  display: grid;
  gap: 24px;
  padding: 44px 22px;
  border-top: 1px solid rgba(151, 124, 103, 0.14);
  background: linear-gradient(180deg, #fbf7f1, #f8f3ea);
}

.home-links-heading {
  display: grid;
  gap: 10px;
}

.home-links-heading p {
  margin: 0;
  color: #9a7e69;
  font-size: 12px;
  line-height: 1.45;
}

.home-links-heading h2 {
  margin: 0;
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.home-links-grid {
  display: grid;
  gap: 10px;
}

.home-links-grid > a {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px 42px 20px 46px;
  border: 1px solid rgba(151, 124, 103, 0.16);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.62);
  color: #76675b;
  box-shadow: 0 8px 18px rgba(117, 92, 73, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.page-link-no {
  position: absolute;
  top: 24px;
  left: 16px;
  color: #a18a76;
  font-size: 10px;
  line-height: 1;
}

.home-links-grid h3 {
  margin: 0;
  color: #6f6258;
  font-family: var(--aftertail-font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.home-links-grid p {
  margin: 0;
  color: #867669;
  font-size: 12px;
  line-height: 1.72;
}

.home-links-grid > a > svg {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 17px;
  height: 17px;
  color: #9a806c;
}

.page-next-step {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 12px 22px 36px;
  padding: 24px;
  border: 1px solid rgba(151, 124, 103, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.62);
}

.page-next-step p {
  margin: 0;
  color: #827266;
  font-size: 13px;
  line-height: 1.75;
}

.page-next-step h2 {
  margin: 0;
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
}

.page-next-step .cta {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 32px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(151, 124, 103, 0.16);
  background: #f4ede3;
  color: #827266;
}

.footer-brand {
  display: grid;
  gap: 6px;
  font-family: var(--aftertail-font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-brand p,
.footer-brand small {
  margin: 0;
  font-family: var(--aftertail-font-ui);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #76675b;
  font-family: var(--aftertail-font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}

.footer-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 124, 103, 0.13);
  font-size: 10px;
  line-height: 1.8;
}

/* Supplemental memorial and enquiry pages follow the reference card anatomy. */
.memorial-section,
.booking-section,
.contact-section {
  display: grid;
  min-width: 0;
  gap: 24px;
  padding: 0 22px 44px;
  color: #76675b;
}

.memorial-photo {
  width: calc(100% + 44px);
  height: 144px;
  margin: 0 -22px;
  overflow: hidden;
}

.memorial-photo img,
img.memorial-photo {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02) brightness(1.04);
}

.memorial-photo img {
  width: 100%;
  height: 100%;
}

.memorial-intro,
.booking-intro,
.contact-intro {
  display: grid;
  gap: 10px;
}

.memorial-intro h2,
.booking-intro h2,
.contact-intro h2 {
  margin: 0;
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.4;
}

.memorial-intro p,
.booking-intro p,
.contact-intro p,
.memorial-note {
  margin: 0;
  color: #7f7064;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

.memorial-intro > p:first-child,
.booking-intro > p:first-child,
.contact-intro > p:first-child {
  color: #9a7e69;
  font-size: 12px;
  font-weight: 500;
}

.memorial-grid,
.contact-grid {
  display: grid;
  gap: 12px;
}

.memorial-card,
.contact-card,
.booking-form,
.enquiry-summary {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(151, 124, 103, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.62);
  box-shadow: 0 8px 18px rgba(117, 92, 73, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.memorial-card > svg,
.contact-card > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(234, 223, 212, 0.72);
  color: #8a7563;
  stroke-width: 1.55;
}

.memorial-card h3,
.contact-card h3,
.enquiry-summary h3 {
  margin: 0 0 10px;
  color: #6f6258;
  font-family: var(--aftertail-font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.memorial-card p,
.contact-card p {
  margin: 0;
  color: #827266;
  font-size: 12px;
  line-height: 1.8;
}

.memorial-card ul,
.contact-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #827266;
  font-size: 12px;
  line-height: 1.72;
}

.memorial-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-left: 2px solid rgba(166, 139, 116, 0.35);
  background: rgba(239, 230, 220, 0.4);
  font-size: 12px;
}

.memorial-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: #9a806c;
}

.memorial-actions .info-actions {
  margin-top: 0;
}

.booking-form {
  display: grid;
  gap: 22px;
}

.booking-fields {
  display: grid;
  gap: 17px;
  min-width: 0;
}

.booking-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.booking-field-label {
  color: #76675b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.booking-field-label small {
  margin-left: 5px;
  color: #9a8878;
  font-size: 10px;
  font-weight: 400;
}

.booking-input,
.booking-select,
.booking-textarea,
.enquiry-summary-text {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(151, 124, 103, 0.3);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.72);
  color: #6f6258;
  font-family: var(--aftertail-font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.booking-input::placeholder,
.booking-textarea::placeholder {
  color: #a18f80;
  opacity: 1;
}

.booking-input:focus,
.booking-select:focus,
.booking-textarea:focus,
.enquiry-summary-text:focus {
  border-color: #9a7e69;
  outline: 2px solid rgba(185, 161, 140, 0.26);
  outline-offset: 2px;
}

.booking-textarea {
  min-height: 116px;
  resize: vertical;
}

.booking-helper {
  margin: 0;
  color: #8a7a6d;
  font-size: 11px;
  line-height: 1.8;
}

.booking-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(154, 118, 94, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 150, 126, 0.96), rgba(154, 122, 98, 0.98));
  color: #fffaf4;
  font-family: var(--aftertail-font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 10px 22px rgba(110, 86, 68, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.booking-submit svg {
  width: 18px;
  height: 18px;
}

.enquiry-summary {
  display: grid;
  gap: 14px;
  background: rgba(246, 238, 228, 0.78);
}

.enquiry-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enquiry-summary-head > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #9a806c;
}

.enquiry-summary-head h3,
.enquiry-summary-head p {
  margin: 0;
}

.enquiry-summary-head p {
  color: #827266;
  font-size: 12px;
  line-height: 1.7;
}

.enquiry-summary-text {
  min-height: 190px;
  font-size: 13px;
  line-height: 1.85;
  resize: vertical;
}

.enquiry-actions {
  display: grid;
  gap: 10px;
}

.enquiry-actions button,
.enquiry-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid rgba(151, 124, 103, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.66);
  color: #75665b;
  font-family: var(--aftertail-font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.enquiry-actions svg {
  width: 16px;
  height: 16px;
}

.enquiry-status {
  margin: 0;
  color: #75665b;
  font-size: 12px;
  line-height: 1.8;
}

.contact-card .info-actions {
  margin-top: 16px;
}

.contact-card .info-actions a {
  min-height: 46px;
}

.contact-card > p > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  color: #8a7563;
  overflow-wrap: anywhere;
}

.contact-card > p > a > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.memorial-actions .info-actions > :only-child,
.contact-card .info-actions > :only-child {
  grid-column: 1 / -1;
}

@media (max-width: 370px) {
  .subpage-masthead,
  .subpage-intro,
  .subpage-tabs,
  .home-page-links,
  .site-footer,
  .memorial-section,
  .booking-section,
  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .subpage-intro h1 {
    font-size: 31px;
  }

  .memorial-photo {
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
  }

  .booking-form,
  .memorial-card,
  .contact-card,
  .enquiry-summary {
    padding: 17px;
  }

  .page-next-step {
    margin-right: 18px;
    margin-left: 18px;
    padding: 20px;
  }
}

@media (min-width: 761px) {
  .site-navigation .menu-panel {
    top: 92px;
    right: clamp(54px, 7vw, 128px);
    width: 250px;
    max-height: calc(100dvh - 120px);
    padding: 12px;
  }

  .site-navigation .menu-panel a {
    font-size: 14px;
  }

  .subpage-masthead {
    padding: 36px clamp(54px, 7vw, 128px) 24px;
  }

  .subpage-intro {
    max-width: 1436px;
    margin: 0 auto;
    gap: 16px;
    padding: 42px clamp(54px, 7vw, 128px) 52px;
  }

  .subpage-intro h1 {
    font-size: clamp(40px, 4vw, 58px);
  }

  .subpage-intro > p:not(.page-kicker):not(.page-number) {
    font-size: 16px;
    line-height: 1.85;
  }

  .subpage-tabs {
    max-width: 1436px;
    margin: 0 auto;
    padding: 0 clamp(54px, 7vw, 128px) 36px;
  }

  .subpage-tabs a {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .home-page-links {
    gap: 32px;
    padding: 72px clamp(54px, 7vw, 128px);
  }

  .home-links-heading,
  .home-links-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
  }

  .home-links-heading h2 {
    font-size: 36px;
  }

  .home-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .home-links-grid > a {
    min-height: 166px;
    padding: 48px 28px 24px;
    border-radius: 12px;
  }

  .home-links-grid h3 {
    font-size: 19px;
  }

  .home-links-grid p {
    font-size: 13px;
  }

  .page-link-no {
    top: 23px;
    left: 28px;
  }

  .home-links-grid > a > svg {
    right: 22px;
  }

  .page-next-step {
    max-width: 1180px;
    margin: 20px clamp(54px, 7vw, 128px) 64px;
    padding: 32px;
  }

  .page-next-step h2 {
    font-size: 32px;
  }

  .page-next-step p {
    font-size: 14px;
  }

  .page-next-step .cta {
    width: fit-content;
    min-width: 230px;
  }

  .site-footer {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 24px 64px;
    padding: 44px clamp(54px, 7vw, 128px) 30px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: center;
  }

  .footer-note {
    grid-column: 1 / -1;
    font-size: 11px;
  }

  .memorial-section,
  .booking-section,
  .contact-section {
    width: 100%;
    max-width: 1436px;
    margin: 0 auto;
    gap: 30px;
    padding: 0 clamp(54px, 7vw, 128px) 72px;
  }

  .memorial-photo {
    width: 100%;
    height: 260px;
    margin: 0;
    border-radius: 16px;
  }

  .memorial-intro h2,
  .booking-intro h2,
  .contact-intro h2 {
    font-size: 34px;
  }

  .memorial-intro p,
  .booking-intro p,
  .contact-intro p {
    max-width: 720px;
    font-size: 15px;
  }

  .memorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .memorial-card,
  .contact-card,
  .booking-form,
  .enquiry-summary {
    padding: 28px;
  }

  .memorial-card h3,
  .contact-card h3,
  .enquiry-summary h3 {
    font-size: 20px;
  }

  .memorial-card p,
  .contact-card p,
  .memorial-card ul,
  .contact-card ul {
    font-size: 14px;
  }

  .booking-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .booking-field-wide {
    grid-column: 1 / -1;
  }

  .booking-field-label {
    font-size: 14px;
  }

  .booking-submit {
    width: fit-content;
    min-width: 230px;
  }

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

  .memorial-actions {
    max-width: 520px;
  }
}

/* Keep the original desktop composition without its fixed-width tablet overflow. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    column-gap: 28px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .site-header {
    right: 40px;
    left: 40px;
  }

  .site-navigation .menu-panel {
    right: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 5.3vw, 58px);
  }

  .hero-copy .intro-copy {
    font-size: 15px;
  }

  .hero-copy .service-kicker {
    gap: 8px;
    font-size: 12px;
  }

  .about-section,
  .flow-section,
  .pricing-section,
  .faq-section,
  .blog-section {
    padding-right: 40px;
    padding-left: 40px;
  }

  .about-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
  }

  .about-section h2 {
    font-size: 36px;
  }

  .about-highlights article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }

  .about-highlights svg {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .flow-photo-strip {
    margin-right: -40px;
    margin-left: -40px;
  }

  .flow-content {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 24px;
  }

  .pricing-panel {
    padding: 18px;
  }

  .pet-control {
    grid-template-columns: 1fr;
  }

  .pricing-heading h2 {
    font-size: 38px;
  }

  .pricing-heading p:last-child {
    font-size: 15px;
  }

  .pricing-panel .calculated-price strong {
    font-size: 40px;
  }

  .pricing-contact .flow-action {
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }

  .faq-section,
  .blog-section {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 30px;
  }

  .subpage-masthead,
  .subpage-intro,
  .subpage-tabs,
  .home-page-links,
  .site-footer,
  .memorial-section,
  .booking-section,
  .contact-section {
    padding-right: 40px;
    padding-left: 40px;
  }

  .subpage-masthead .site-header {
    right: auto;
    left: auto;
  }

  .memorial-card,
  .contact-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aftertail-page *,
  .aftertail-page *::before,
  .aftertail-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Specific companion-animal choices remain readable on phone screens. */
.pet-control { grid-template-columns: 1fr; gap: 9px; }
.profile-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-tabs button { min-height: 44px; }
@media (min-width: 1101px) {
  .profile-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

