:root {
  --ink: #101010;
  --muted: #5b625f;
  --soft: #f8f7f2;
  --surface: #ffffff;
  --line: #dedbd2;
  --teal: #2b9c93;
  --teal-soft: #e8f5f2;
  --orange: #e79800;
  --orange-soft: #fff3df;
  --shadow: 0 24px 70px rgba(23, 43, 41, 0.12);
  --serif: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: Aileron, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 44px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 31;
}

.brand img {
  display: block;
  width: 142px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.nav-trigger {
  padding: 8px 0;
}

.mega-item {
  position: relative;
}

.nav-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.nav-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.mega-panel {
  position: fixed;
  top: 68px;
  left: 50%;
  right: auto;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(220px, 0.9fr);
  gap: 28px;
  width: min(760px, calc(100vw - 88px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  padding: 26px;
  box-shadow: 0 28px 70px rgba(23, 43, 41, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.mega-panel.narrow {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.85fr);
  width: min(560px, calc(100vw - 88px));
}

.mega-panel.about-menu {
  grid-template-columns: minmax(220px, 1fr);
  width: min(310px, calc(100vw - 88px));
}

.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.desktop-nav:has(.mega-item:hover) .mega-item:focus-within:not(:hover) .mega-panel,
.desktop-nav:has(.nav-demo:hover) .mega-item:focus-within .mega-panel {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  visibility: hidden;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 4px;
}

.mega-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mega-link {
  border-radius: 10px;
  color: #2c3632;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.mega-cta {
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.mega-cta.compact-cta {
  align-content: center;
}

.mega-cta strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
}

.mega-cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mega-action,
.nav-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mega-action {
  width: max-content;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 900;
}

.mega-action .button-icon,
.nav-demo .button-icon {
  width: 17px;
  height: 17px;
}

.nav-demo {
  height: 40px;
  border: 1px solid rgba(35, 151, 142, 0.2);
  border-radius: 14px;
  background: #fff;
  color: #172b29;
  padding: 0 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 43, 41, 0.08);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-demo:hover,
.nav-demo:focus-visible {
  border-color: rgba(35, 151, 142, 0.36);
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
  transform: translateY(-1px);
}

.header-auth,
.menu-button {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.header-auth {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
}

.profile-shell {
  position: relative;
  justify-self: end;
}

.profile-button {
  border: 0;
  background: transparent;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 75;
  display: grid;
  min-width: 220px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(23, 43, 41, 0.16);
}

.account-menu[hidden] {
  display: none;
}

.account-menu strong,
.account-menu a {
  border-radius: 10px;
  padding: 10px 12px;
}

.account-menu strong {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.account-menu a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.account-menu a:hover {
  background: var(--teal-soft);
}

.menu-button,
.mobile-nav,
.menu-scrim {
  display: none;
}

.header-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  gap: 46px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px 44px 54px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  max-width: 570px;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 0.96;
  font-weight: 800;
}

.hero-copy > p {
  max-width: 560px;
  margin-top: 20px;
  color: #303835;
  font-size: 18px;
  line-height: 1.56;
}

.typed-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #2f3935;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.18;
}

.typed-line span {
  position: relative;
  color: var(--teal);
}

.typed-line span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 14%;
  width: 2px;
  height: 74%;
  background: var(--orange);
  animation: blink 900ms steps(1) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  font-size: 16px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 43, 41, 0.12);
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.orange {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.ghost {
  background: #fff;
  color: var(--ink);
}

.text-action {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  color: #147c75;
  font-weight: 850;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 46px;
}

.availability button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 15px 24px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(34, 34, 34, 0.06);
}

.availability div {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.availability strong {
  color: #157b47;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 595px;
}

.sketch-hero {
  display: grid;
  align-content: start;
  gap: 18px;
}

.family-art {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: drop-shadow(0 22px 38px rgba(59, 64, 60, 0.08));
}

.hero-sketch-art {
  height: 430px;
  object-position: center 42%;
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: #fff;
}

.hero-sketch-tiles {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  width: min(520px, 78%);
  margin-left: 12px;
}

.hero-sketch-tiles figure {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.hero-sketch-tiles img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.25;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.hero-sketch-tiles figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.case-preview {
  position: absolute;
  right: 28px;
  bottom: 16px;
  width: min(560px, 86%);
  padding: 28px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.case-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.case-head span,
.case-head strong {
  font-size: 18px;
  font-weight: 900;
}

.case-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.case-head strong {
  color: var(--teal);
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.progress-line span {
  height: 10px;
  border-radius: 999px;
  background: #e7e4da;
}

.progress-line .done {
  background: var(--teal);
}

.progress-line .active {
  background: var(--orange);
}

.case-update {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: #39413e;
  font-size: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 42px;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 44px 50px;
}

.trust-copy {
  padding: 32px 0;
}

.trust-copy h2 {
  max-width: 460px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.05;
}

.trust-copy p {
  max-width: 420px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.52;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  padding: 0 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 43, 41, 0.06);
}

.feature-illustration {
  display: block;
  width: calc(100% + 44px);
  height: 144px;
  margin: 0 -22px 20px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: #fffaf2;
}

.feature-card h3,
.country-card h3,
.demo-case h3,
.service-options h3,
.memorial-section h2 {
  font-family: var(--serif);
}

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

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px 44px;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2,
.product-header h2,
.partner-band h2,
.answers h2 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.05;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.path-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 420px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--teal-soft), #f8fbfa);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(23, 43, 41, 0.1);
}

.path-card.warm {
  background: linear-gradient(180deg, var(--orange-soft), #fffbf5);
}

.path-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.path-card h3 {
  align-self: end;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  padding: 24px 26px 0;
}

.path-card p {
  max-width: 270px;
  margin-top: 10px;
  color: #3f4642;
  line-height: 1.45;
  padding: 0 26px;
}

.path-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 26px 26px;
  color: #177d77;
  font-weight: 850;
}

.path-card span .button-icon {
  width: 17px;
  height: 17px;
}

.warm span {
  color: #ca7900;
}

.steps-section {
  padding-top: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.step {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.step-drawing {
  width: 100%;
  max-width: 210px;
  height: auto;
  aspect-ratio: 4 / 2.65;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(23, 43, 41, 0.06);
}

.step-drawing img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.step h3 {
  font-family: var(--serif);
  font-size: 24px;
}

.step p {
  color: var(--muted);
  line-height: 1.45;
}

.asean-section {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 46px;
  align-items: center;
  max-width: 1320px;
  margin: 22px auto 0;
  padding: 60px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.asean-copy h2,
.demo-copy h2,
.product-header h2,
.partner-band h2,
.answers h2 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.05;
}

.asean-copy p,
.demo-copy p {
  max-width: 480px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.asean-copy a,
.memorial-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--teal);
  font-weight: 900;
}

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

.country-card {
  min-height: 316px;
  overflow: hidden;
  padding: 0 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfaf5);
}

.country-skyline {
  display: block;
  width: calc(100% + 44px);
  height: 164px;
  margin: 0 -22px 20px;
  object-fit: cover;
  object-position: center 64%;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: #fffaf2;
}

.country-card h3 {
  font-size: 25px;
}

.country-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.demo-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 46px;
  align-items: center;
  max-width: 1320px;
  margin: 22px auto 0;
  padding: 64px 44px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.demo-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  color: #36413e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.demo-tabs button .button-icon,
.choice-list button .button-icon {
  width: 17px;
  height: 17px;
}

.demo-tabs .active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.interactive-demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: 48px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px 44px 142px;
}

.demo-intro {
  position: sticky;
  top: 104px;
}

.demo-intro h1 {
  margin: 0;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 0.94;
}

.demo-intro p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.demo-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.demo-builder {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 43, 41, 0.1);
  overflow: hidden;
}

.demo-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.demo-stepper span {
  display: grid;
  min-height: 52px;
  place-items: center;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.demo-stepper .active {
  background: var(--teal-soft);
  color: #147c75;
}

.demo-stepper .done {
  background: #f7fbf5;
  color: #157b47;
}

.demo-lead-form {
  display: grid;
}

.demo-step {
  padding: 34px;
}

.demo-step[hidden] {
  display: none;
}

.demo-step-heading {
  max-width: 640px;
}

.demo-step-heading small {
  color: var(--teal);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-step-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.demo-step-heading p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.demo-scenario {
  display: grid;
  gap: 10px;
  min-height: 178px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.demo-scenario:hover,
.demo-scenario:focus-visible,
.demo-scenario.active {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
  transform: translateY(-1px);
}

.demo-scenario .button-icon {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.demo-scenario strong {
  font-size: 18px;
}

.demo-scenario span {
  color: var(--muted);
  line-height: 1.45;
}

.demo-detail-grid,
.demo-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.demo-detail-grid label,
.demo-contact-grid label {
  display: grid;
  gap: 9px;
  color: #2d3532;
  font-weight: 850;
}

.demo-detail-grid select,
.demo-contact-grid input,
.demo-contact-grid textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.demo-detail-grid fieldset {
  display: grid;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.demo-detail-grid legend {
  padding: 0 6px;
  color: #2d3532;
  font-weight: 850;
}

.demo-detail-grid fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.demo-contact-grid label:last-child {
  grid-column: 1 / -1;
}

.demo-live-preview {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-top: 28px;
}

.demo-case-preview,
.demo-whatsapp-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.demo-case-preview span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.demo-case-preview h3 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
}

.demo-case-preview p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-route {
  margin-top: 24px;
  border-radius: 14px;
  background: var(--teal-soft);
  padding: 14px;
  color: #147c75;
  font-weight: 900;
}

.demo-whatsapp-preview {
  background: #f7fbf5;
}

.demo-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 22px 34px;
}

.demo-panel {
  display: block;
}

.demo-flow-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: stretch;
}

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

.phone-demo,
.demo-case {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(23, 43, 41, 0.08);
}

.phone-demo {
  padding: 18px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: #157b47;
  font-size: 13px;
}

.message-list {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.message-list p {
  width: 88%;
  border-radius: 18px 18px 18px 4px;
  background: #e8f6ea;
  padding: 13px 14px;
  color: #26312d;
  font-size: 14px;
  line-height: 1.42;
}

.message-list .from-user {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
  background: #f4f1e8;
}

.demo-case {
  display: grid;
  align-content: center;
  padding: 30px;
}

.demo-case h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.demo-case p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0;
}

.mini-progress span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mini-progress .done {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: #147c75;
}

.compact {
  min-height: 50px;
  width: max-content;
  padding: 0 24px;
}

.product-shell {
  max-width: 1320px;
  margin: 36px auto 0;
  padding: 68px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.product-header p {
  margin-top: 8px;
  color: var(--muted);
}

.product-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.product-visual-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.product-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.25;
  object-fit: cover;
  object-position: center 44%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.product-visual-row h3 {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.product-visual-row p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.52;
}

.intake-flow {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(220px, 0.46fr) minmax(300px, 0.68fr);
  gap: 22px;
}

.question-card,
.quiet-summary,
.service-options article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.question-card {
  padding: 30px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.question-card small {
  color: var(--teal);
  font-weight: 900;
}

.question-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.question-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.choice-list button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 15px 18px;
  text-align: left;
  color: #28312e;
  cursor: pointer;
  font-weight: 850;
}

.choice-list button:hover {
  border-color: var(--teal);
}

.quiet-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.quiet-summary strong {
  font-family: var(--serif);
  font-size: 24px;
}

.quiet-summary span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.quiet-summary a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 900;
}

.quiet-summary a .button-icon {
  width: 17px;
  height: 17px;
}

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

.service-options article {
  padding: 20px;
}

.service-options h3 {
  font-size: 22px;
}

.service-options p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.memorial-section {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 64px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7fbfa;
}

.memorial-section h2 {
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.05;
}

.memorial-section p {
  max-width: 650px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.52;
}

.memorial-art {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.partner-band {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  align-items: center;
  gap: 44px;
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 62px 44px;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  background: linear-gradient(90deg, #e5f5f2, #eff9f7);
}

.partner-band p {
  max-width: 360px;
  margin-top: 12px;
  color: #40504c;
  line-height: 1.45;
}

.partner-band a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #147c75;
  font-weight: 900;
}

.partner-band a .button-icon,
.memorial-section a .button-icon,
.pricing-note a .button-icon {
  width: 17px;
  height: 17px;
}

.partner-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.partner-types span {
  min-height: 90px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(16, 16, 16, 0.18);
  text-align: center;
  font-weight: 850;
}

.answers {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  max-width: 1320px;
  margin: 28px auto 110px;
  padding: 62px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf2, #fff);
}

.pricing-note p {
  margin-top: 10px;
  color: var(--muted);
}

.pricing-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 15px 0;
  color: #252b28;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.faq-item p {
  max-width: 680px;
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.floating-actions {
  position: fixed;
  right: 30px;
  bottom: 28px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.sticky-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 166px;
  min-height: 68px;
  border: 6px solid #fff;
  border-radius: 999px;
  padding: 0 24px;
  box-shadow: 0 16px 38px rgba(23, 43, 41, 0.22);
  text-align: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sticky-cta a .button-icon {
  width: 18px;
  height: 18px;
}

.sticky-cta a:first-child {
  background: var(--teal);
}

.sticky-cta a:last-child {
  background: var(--orange);
}

.whatsapp-fab {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #26a95f;
  color: #fff;
  box-shadow: 0 16px 38px rgba(19, 83, 57, 0.28);
  font-weight: 950;
  pointer-events: auto;
}

.fab-icon {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 44px 172px;
  color: var(--muted);
  font-size: 14px;
}

footer img {
  width: 96px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.about-shell {
  display: grid;
  gap: 38px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 44px 110px;
}

.about-hero {
  max-width: 760px;
}

.about-hero h1 {
  max-width: 720px;
}

.about-hero > p {
  margin-top: 18px;
  color: #303835;
  font-size: 18px;
  line-height: 1.58;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-principles article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.about-principles h2,
.about-band h2 {
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1.08;
}

.about-principles p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.about-band > p {
  color: #303835;
  font-size: 17px;
  line-height: 1.58;
}

.auth-shell,
.account-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(360px, 0.85fr);
  gap: 54px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.auth-shell h1,
.account-shell h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.8vw, 68px);
}

.auth-shell p,
.account-shell p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.eyebrow {
  color: var(--teal) !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel,
.account-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.auth-panel {
  padding: 30px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form + .auth-form,
.auth-panel .text-action {
  margin-top: 24px;
}

.auth-form label {
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="text"] {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.flash {
  margin: 0 0 18px !important;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px !important;
  font-weight: 800;
}

.flash.notice {
  background: var(--teal-soft);
  color: #147c75;
}

.flash.alert {
  background: var(--orange-soft);
  color: #9d5f00;
}

.account-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.account-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.account-grid article {
  min-width: 0;
  padding: 28px;
}

.account-grid h2 {
  font-size: 30px;
}

.account-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.account-grid li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.account-grid li a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.case-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 170px;
}

.case-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.case-titlebar h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 72px);
}

.case-titlebar p {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

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

.case-card,
.empty-state,
.case-summary article,
.case-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.case-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.case-card h2 {
  font-size: 25px;
}

.case-card p,
.case-card small,
.muted-copy {
  color: var(--muted);
  line-height: 1.55;
}

.case-status,
.pill {
  width: fit-content;
  border: 1px solid rgba(43, 156, 147, 0.28);
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 6px 10px;
  color: #147c75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  max-width: 620px;
  padding: 34px;
}

.empty-state h2,
.case-panel h2 {
  font-size: 28px;
}

.empty-state p {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.case-summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px;
}

.case-summary span,
.panel-heading span,
.case-task-list span,
.document-list span,
.people-list span,
.case-timeline time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.case-summary strong {
  font-size: 26px;
  overflow-wrap: anywhere;
}

.case-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

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

.case-panel {
  min-width: 0;
  padding: 26px;
}

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

.case-task-list,
.case-timeline,
.document-list,
.people-list,
.estate-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-task-list li,
.document-list li,
.people-list li,
.estate-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-task-list li > div,
.document-list li,
.people-list li,
.estate-list li > div {
  min-width: 0;
}

.case-task-list strong,
.document-list strong,
.people-list strong,
.estate-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.estate-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.case-timeline li {
  border-left: 3px solid var(--teal-soft);
  padding-left: 14px;
}

.case-timeline strong {
  display: block;
  margin-top: 4px;
}

.case-timeline p {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.5;
}

.case-note-form,
.case-share-form,
.document-upload-form,
.estate-workstream-form,
.referral-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-note-form label,
.case-share-form label,
.document-upload-form label,
.estate-workstream-form label,
.referral-form label {
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.case-note-form input,
.case-share-form input,
.case-share-form select,
.document-upload-form input,
.document-upload-form select,
.estate-workstream-form input,
.estate-workstream-form select,
.referral-form input,
.referral-form select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.utm-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inline-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-admin-form .select-input {
  min-width: 150px;
}

.document-upload-form input[type="file"] {
  min-height: auto;
  padding: 13px;
  background: #fff;
}

.icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}

.service-shell,
.intake-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.service-hero,
.intake-copy {
  min-width: 0;
  max-width: 760px;
}

.service-hero h1,
.intake-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.service-hero p,
.intake-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.service-card {
  display: grid;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.5);
  outline: 0;
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.service-card h2,
.availability-panel h2,
.result-panel h2 {
  margin: 20px 0 0;
  font-size: 28px;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-card small {
  align-self: end;
  margin-top: 28px;
  color: #2d3532;
  font-weight: 850;
}

.guide-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 140px;
}

.guide-hero {
  max-width: 780px;
}

.guide-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
}

.guide-hero p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.guide-card {
  display: grid;
  gap: 12px;
  min-height: 270px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.5);
  outline: 0;
  transform: translateY(-2px);
}

.guide-card h2 {
  margin: 0;
  font-size: 25px;
}

.guide-card p,
.guide-card small,
.guide-article p,
.guide-aside p {
  color: var(--muted);
  line-height: 1.55;
}

.guide-card small {
  align-self: end;
  font-weight: 800;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  align-items: start;
  margin-top: 56px;
}

.guide-article {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.guide-article section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.guide-article h2,
.guide-aside h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.guide-article p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 18px;
}

.guide-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: var(--soft);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.quote-line-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quote-line-list li,
.quote-total,
.payment-details div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.quote-line-list span,
.quote-line-list strong,
.quote-total strong,
.payment-details dd {
  overflow-wrap: anywhere;
}

.quote-total {
  margin-top: 20px;
  border-bottom: 0;
  padding-top: 18px;
  padding-bottom: 0;
  font-size: 22px;
}

.payment-panel {
  max-width: 760px;
}

.payment-details {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.payment-details dt {
  color: var(--muted);
  font-weight: 800;
}

.payment-details dd {
  margin: 0;
  font-weight: 850;
  text-align: right;
}

.service-detail,
.intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: 54px;
  align-items: start;
}

.service-actions {
  margin-top: 28px;
}

.availability-panel,
.result-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.availability-panel ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.availability-panel li,
.result-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.availability-panel span,
.result-panel dd {
  color: var(--teal);
  font-weight: 900;
}

.intake-panel {
  min-width: 0;
}

.select-input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.select-input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.intake-checks {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.intake-checks legend {
  padding: 0 8px;
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.intake-checks label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.intake-checks input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.result-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.result-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.result-panel dd {
  margin: 0;
  text-align: right;
}

.result-actions {
  margin-top: 28px;
}

.will-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.7fr);
  gap: 54px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.will-copy {
  min-width: 0;
  max-width: 760px;
}

.will-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.will-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.will-panel,
.will-result {
  min-width: 0;
}

.draft-text {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--soft);
  color: #26312d;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 54px 1fr 54px;
    min-height: 64px;
    padding: 8px 18px;
    gap: 0;
  }

  .menu-button {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    position: relative;
    z-index: 31;
    border-radius: 14px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .brand img {
    width: 118px;
    height: 38px;
    object-position: center;
  }

  .header-auth,
  .profile-shell {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header-auth {
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
  }

  .header-auth {
    color: #fff;
    border-color: var(--teal);
    background: var(--teal);
  }

  .header-auth span {
    display: none;
  }

  .profile-button {
    width: 46px;
    height: 46px;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .account-menu {
    right: 0;
    min-width: 210px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 55;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    width: min(82vw, 340px);
    height: 100dvh;
    gap: 10px;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    padding: 88px 28px 28px;
    overflow-y: auto;
    box-shadow: -18px 0 44px rgba(23, 43, 41, 0.16);
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a,
  .mobile-nav summary {
    color: var(--ink);
  }

  .mobile-nav-feature {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: var(--teal-soft);
    color: #147c75;
    padding: 12px 17px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-nav-group {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  .mobile-nav-group:last-of-type {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 800;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    content: "+";
    float: right;
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 850;
  }

  .mobile-nav details[open] summary::after {
    content: "-";
  }

  .mobile-nav-group a {
    display: block;
    padding: 12px 0 0 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 780;
  }

  .mobile-nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    border: 0;
    background: rgba(16, 16, 16, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .menu-scrim.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .trust-strip,
  .asean-section,
  .demo-section,
  .interactive-demo-shell,
  .demo-panel,
  .demo-flow-panel,
  .product-visual-row,
  .intake-flow,
  .memorial-section,
  .partner-band,
  .answers,
  .auth-shell,
  .account-shell,
  .about-band,
  .account-grid,
  .service-grid,
  .service-detail,
  .intake-shell,
  .will-shell,
  .case-list,
  .case-summary,
  .case-dashboard-grid,
  .estate-grid,
  .referral-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 22px 34px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-sketch-tiles {
    width: 100%;
    margin-left: 0;
  }

  .pathway-grid,
  .steps,
  .feature-row,
  .partner-types {
    grid-template-columns: 1fr;
  }

  .section,
  .trust-strip,
  .asean-section,
  .demo-section,
  .interactive-demo-shell,
  .product-shell,
  .memorial-section,
  .partner-band,
  .answers,
  .auth-shell,
  .account-shell,
  .about-shell,
  .service-shell,
  .intake-shell,
  .will-shell,
  .guide-shell,
  .case-shell {
    width: calc(100% - 44px);
    max-width: none;
    margin-left: 22px;
    margin-right: 22px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .interactive-demo-shell {
    gap: 28px;
  }

  .demo-intro {
    position: static;
  }

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

  .demo-scenario-grid,
  .demo-detail-grid,
  .demo-contact-grid,
  .demo-live-preview {
    grid-template-columns: 1fr;
  }

  .case-shell .case-summary,
  .account-shell .account-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .trust-strip {
    padding-top: 16px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-illustration {
    height: 190px;
  }

  .country-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-grid,
  .guide-layout,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .partner-types span {
    border-left: 0;
    border-top: 1px solid rgba(16, 16, 16, 0.16);
  }

  .about-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 104px;
  }

  .site-header {
    grid-template-columns: 50px 1fr 50px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-actions {
    width: calc(100vw - 32px);
  }

  .guide-shell .hero-actions {
    width: 100%;
  }

  .button,
  .sticky-cta a {
    flex: 1;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }

  .case-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .hero-visual {
    min-height: auto;
  }

  .family-art {
    height: 300px;
  }

  .hero-sketch-art {
    height: 310px;
  }

  .hero-sketch-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-sketch-tiles img,
  .product-illustration {
    border-radius: 10px;
  }

  .hero-sketch-tiles figcaption {
    font-size: 11px;
  }

  .feature-illustration,
  .country-skyline {
    height: 150px;
  }

  .country-card {
    min-height: 0;
  }

  .country-grid,
  .mini-progress {
    grid-template-columns: 1fr;
  }

  .demo-step {
    padding: 24px;
  }

  .demo-controls {
    flex-direction: column;
    padding: 18px 24px;
  }

  .demo-controls .button {
    width: 100%;
  }

  .product-header,
  .account-header,
  .case-titlebar,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    padding-bottom: 260px;
  }

  .case-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .case-task-list li,
  .document-list li,
  .people-list li,
  .estate-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .utm-row {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 8px;
  }

  .sticky-cta {
    flex: 1 1 auto;
    gap: 8px;
    transform: translateY(18px);
  }

  .sticky-cta.visible {
    transform: translateY(0);
  }

  .sticky-cta a {
    min-height: 54px;
    min-width: 0;
    flex: 1;
    border-width: 4px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(23, 43, 41, 0.16);
  }

  .whatsapp-fab {
    width: 54px;
    height: 54px;
    border-width: 4px;
  }

  .fab-icon {
    width: 23px;
    height: 23px;
  }
}

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