:root {
  --sav-green-900: #123D2B;
  --sav-green-800: #174E37;
  --sav-green-700: #1F6546;
  --sav-green-600: #2A7655;
  --sav-cream: #FCFBF7;
  --sav-surface: #FFFFFF;
  --sav-text: #1C2923;
  --sav-text-muted: #5C6861;
  --sav-border: #DFE4DF;
  --sav-champagne: #C9A96E;
  --primary: var(--sav-green-900);
  --primary-rgb: 18, 61, 43;
  --secondary: var(--sav-green-700);
  --accent: var(--sav-green-700);
  --accent-rgb: 31, 101, 70;
  --interactive: var(--sav-green-700);
  --bg: var(--sav-cream);
  --ink: var(--sav-text);
  --rim: var(--sav-border);
  --surface: var(--sav-surface);
  --subtle: var(--sav-text-muted);
  --faint: #69756E;
  --note: #F2F5F1;
  --sun: #C9A96E;
  --champagne: var(--sav-champagne);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: .75rem;
  --radius-md: 1rem;
  --radius-button: 1.25rem;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  text-wrap: balance;
}

a {
  text-underline-offset: 0.16em;
}

:focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 3px;
}

.card {
  border-color: var(--rim);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.article p,
.article li {
  color: var(--subtle);
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Long-form copy stays easy to scan even inside centered sales sections. */
.prose-p {
  max-width: 68ch;
  text-align: left !important;
  line-height: 1.7;
}

body > .text-center.px-5.pt-8 > p.max-w-2xl {
  max-width: 68ch;
  text-align: left;
  line-height: 1.7;
}

.flex-1.text-center > p.text-xs,
section.max-w-3xl.text-center > p.text-xs,
.wrap[style*="text-align:center"] > p.muted {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left !important;
  line-height: 1.7;
}

.article h1 {
  color: var(--primary);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.3;
}

.article h2,
.article h3 {
  color: var(--primary);
}

.article a,
main a:not(.btn-cta) {
  color: var(--interactive);
}

.section-label,
.kicker {
  color: var(--interactive) !important;
  font-size: clamp(.75rem, 1.4vw, .875rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.45 !important;
}

.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--champagne);
  background: var(--note);
  color: var(--ink);
}

header {
  background: var(--bg) !important;
  border-bottom-color: var(--rim) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

header .btn-cta {
  min-height: 44px;
  padding: 0 0.5rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--interactive) !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: none !important;
}

header .btn-cta:hover,
header .btn-cta:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--primary) !important;
  text-decoration: underline;
}

header nav a {
  white-space: nowrap;
}

header > div {
  width: 100%;
  max-width: 68rem !important;
}

header nav {
  align-self: stretch;
}

header nav a {
  display: inline-flex;
  align-items: center;
}

section[style*="border-top:1px solid var(--rim)"],
section[style*="border-bottom:1px solid var(--rim)"],
footer.border-t,
.article hr,
.rule {
  border-color: var(--rim) !important;
}

.btn-cta {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: none !important;
  color: var(--bg);
  min-height: 52px;
  border-radius: var(--radius-button) !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a.border,
a.border-2,
button.border,
button.border-2 {
  border-radius: var(--radius-button) !important;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  border-color: var(--interactive);
  background: var(--interactive);
  box-shadow: none !important;
}

.btn-cta:active {
  transform: translateY(1px) !important;
}

.trust-avatar {
  background: var(--surface) !important;
  border-color: var(--rim) !important;
}

section h2 {
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

section h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.3; }

.wrap { max-width: 48rem !important; }
.sec { padding: clamp(4rem, 8vw, 6rem) 0 !important; }
.sec-tight { padding: clamp(2.5rem, 5vw, 4rem) 0 !important; }

.article {
  max-width: 47rem !important;
  padding-top: clamp(3.5rem, 7vw, 5.5rem) !important;
  padding-bottom: clamp(4rem, 8vw, 6rem) !important;
}

.article h1 {
  max-width: 25ch;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.article h2 { font-size: clamp(1.625rem, 3vw, 2rem); margin-top: 3rem; }
.article h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.article p,
.article li { max-width: 68ch; }

.article nav.card {
  border-radius: var(--radius-sm);
  background: #F5F6F2;
}

#order-form-wrap,
#qr-wrap {
  border-color: rgba(18, 61, 43, .14) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
}

#order-form input:not([type="checkbox"]),
#order-form textarea,
#order-form select {
  min-height: 48px;
  border-color: rgba(18, 61, 43, .18) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}

#order-form input:focus,
#order-form textarea:focus,
#order-form select:focus {
  border-color: var(--interactive) !important;
  outline: 2px solid rgba(31, 101, 70, .16) !important;
  outline-offset: 1px;
}

#order-form-wrap > div:first-child,
#order-form .card {
  background: #F5F6F2 !important;
}

footer {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  border-top: 1px solid rgba(18, 61, 43, .12) !important;
  background: #F5F4EE;
}

footer::before {
  content: "";
  display: block;
  width: 8.5rem;
  height: 2rem;
  margin: 0 auto 1.5rem;
  background: url('/brand-logo.svg') center / contain no-repeat;
}

footer p { max-width: 44rem; margin-left: auto; margin-right: auto; }

/* Luxury wellness editorial rhythm for the public home page. */
.brand-intro {
  max-width: 68rem;
  margin: 0 auto;
  padding-top: 1.5rem !important;
}

.brand-intro > p {
  position: relative;
  margin-left: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--champagne);
  font-size: 1.0625rem !important;
  line-height: 1.62 !important;
}

.editorial-hero {
  max-width: 68rem !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  grid-template-areas:
    "label media"
    "title media"
    "proof media"
    "body media"
    "actions media";
  grid-template-rows: auto auto auto auto 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem) !important;
  row-gap: 0 !important;
  padding-top: clamp(2rem, 4vw, 3.75rem) !important;
  padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

.editorial-hero > .hero-copy {
  display: contents;
}

.editorial-hero .section-label { grid-area: label; }
.editorial-hero h1 { grid-area: title; }
.editorial-hero .hero-proof { grid-area: proof; }
.editorial-hero .hero-body { grid-area: body; }
.editorial-hero .hero-actions { grid-area: actions; }
.editorial-hero .hero-media { grid-area: media; align-self: center; }

.editorial-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 5vw, 4.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.editorial-hero h1 > span { display: block; }

.editorial-hero .prose-p {
  max-width: 58ch;
  font-size: 1.125rem !important;
}

.editorial-hero .hero-actions .btn-cta {
  min-height: 58px;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
}

.editorial-hero [data-role="PRODUCT"] {
  position: relative;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--surface) !important;
  box-shadow: 18px 18px 0 -17px var(--champagne) !important;
}

.editorial-hero [data-role="PRODUCT"] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editorial-mechanism,
.editorial-inclusions,
.editorial-founder,
.editorial-booking,
.editorial-faq {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.editorial-mechanism {
  background: var(--primary) !important;
  color: var(--bg);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 !important;
}

.editorial-mechanism h2,
.editorial-mechanism p {
  color: var(--bg) !important;
}

.editorial-mechanism .section-label {
  color: #D9C28F !important;
  text-align: left !important;
}

.editorial-mechanism .prose-p,
.editorial-mechanism h2 {
  margin-left: 0 !important;
  text-align: left !important;
}

.editorial-mechanism h2 {
  max-width: 24ch;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 1.18;
  text-wrap: balance;
}

.editorial-inclusions {
  background: var(--bg) !important;
  padding: clamp(4.5rem, 9vw, 7rem) 0 !important;
}

.editorial-inclusions > div {
  max-width: 64rem !important;
}

.editorial-inclusions .grid {
  counter-reset: inclusion;
  gap: 0 !important;
  border-top: 1px solid var(--rim);
}

.editorial-inclusions .card {
  counter-increment: inclusion;
  position: relative;
  padding: 2rem 1.5rem 2rem 3.75rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rim) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.editorial-inclusions .card::before {
  content: "0" counter(inclusion);
  position: absolute;
  top: 2.1rem;
  left: 1rem;
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.editorial-founder > div {
  max-width: 58rem !important;
  display: grid !important;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem) !important;
  align-items: center;
  text-align: left !important;
}

.editorial-founder img {
  width: 10rem !important;
  height: 12rem !important;
  margin: 0 !important;
  border-radius: 3px !important;
  border: 0 !important;
  object-fit: cover;
}

.editorial-evidence {
  gap: 0 !important;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.editorial-evidence .card {
  border: 0 !important;
  border-left: 1px solid var(--rim) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 1rem clamp(1.5rem, 4vw, 3rem) !important;
}

.editorial-evidence .card:first-child {
  border-left-color: var(--champagne) !important;
}

.editorial-products {
  max-width: 68rem !important;
  padding-top: clamp(4.5rem, 8vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 8vw, 7rem) !important;
}

.editorial-products > .grid .card {
  padding: 1.5rem !important;
  border-radius: var(--radius-md) !important;
}

.editorial-products > .grid > .card:first-child {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  border-color: rgba(18, 61, 43, .16) !important;
  background: var(--surface);
}

.editorial-products > .grid > .card:first-child img {
  grid-column: 1;
  grid-row: 1 / 7;
  width: 100% !important;
  height: 20rem !important;
  margin: 0 !important;
  align-self: center;
}

.editorial-products > .grid > .card:first-child > :not(img) { grid-column: 2; }
.editorial-products > .grid > .card:first-child > p.font-semibold { font-size: 1.75rem !important; line-height: 1.25 !important; }
.editorial-products > .grid > .card:first-child > p.font-black { font-size: 1.75rem !important; color: var(--primary) !important; }
.editorial-products > .grid > .card:first-child .btn-cta { justify-self: start; min-width: 11rem; padding-left: 1.5rem; padding-right: 1.5rem; }

.editorial-products img {
  border-radius: 2px !important;
}

.editorial-booking {
  background: #F2F5F1 !important;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 !important;
}

.editorial-booking > div {
  text-align: left !important;
}

.editorial-booking .prose-p {
  margin-left: 0 !important;
}

.editorial-booking a:not(.btn-cta) {
  border-width: 1px !important;
  border-radius: 6px !important;
}

.editorial-guarantee {
  position: relative;
  max-width: 48rem !important;
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

.editorial-guarantee::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--champagne);
}

.editorial-faq {
  background: var(--bg) !important;
  padding: clamp(4.5rem, 8vw, 6rem) 0 !important;
}

.editorial-faq #faq-list {
  border-top: 1px solid var(--rim);
}

.editorial-faq details.card {
  margin-bottom: .75rem;
  border: 1px solid rgba(18, 61, 43, .12) !important;
  border-radius: .875rem !important;
  background: rgba(255,255,255,.72) !important;
  padding: 1.25rem 1.125rem !important;
}

.editorial-faq summary {
  font-size: 1.0625rem !important;
  line-height: 1.5 !important;
}

.editorial-final {
  max-width: 52rem !important;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.editorial-final > .card {
  border: 0 !important;
  border-top: 1px solid var(--champagne) !important;
  border-bottom: 1px solid var(--rim) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

@media (max-width: 639px) {
  header:has(#menu-toggle) > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 72px;
    padding: 0 1rem !important;
  }

  header:has(#menu-toggle) > div > .flex:first-child {
    display: contents;
  }

  header:has(#menu-toggle) a[aria-label="Sống An Vui"] {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
  }

  header:has(#menu-toggle) #menu-toggle {
    grid-column: 2;
    justify-self: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0 !important;
    color: var(--primary);
  }

  #menu-icon-open {
    width: 24px !important;
  }

  #menu-icon-open > div:first-child,
  #menu-icon-open > div:last-child {
    height: 2px !important;
    background: var(--primary) !important;
  }

  #menu-icon-open > div:nth-child(2) {
    margin: 2px 0 !important;
    color: var(--primary) !important;
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: 0.05em !important;
  }

  #menu-icon-close {
    width: 24px;
    height: 24px;
  }

  header:has(#menu-toggle) > div > :last-child {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
  }

  header img[alt="Sống An Vui"] {
    width: 108px !important;
    max-width: 100%;
    height: auto !important;
    flex-shrink: 0;
  }

  header .btn-cta {
    flex: 0 0 auto;
    font-size: 0.9375rem !important;
    min-width: max-content;
    min-height: 44px;
    padding: 0 0.25rem !important;
    justify-content: flex-end;
  }

  .brand-intro {
    padding-top: 1.25rem !important;
    text-align: left !important;
  }

  .brand-intro > p {
    padding-left: 1rem;
    font-size: 1rem !important;
  }

  .editorial-hero {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "proof"
      "body"
      "actions"
      "media";
    grid-template-rows: auto;
    gap: 2rem !important;
    row-gap: 0 !important;
    padding-top: 1.75rem !important;
    padding-bottom: 3.75rem !important;
  }

  .editorial-hero > div:first-child {
    text-align: left !important;
  }

  .editorial-hero .hero-media {
    margin: 2rem 0 0;
  }

  .editorial-hero h1 {
    max-width: 14ch;
    font-size: 2.375rem !important;
    letter-spacing: -.05em;
  }

  .editorial-hero .section-label,
  .editorial-hero .prose-p {
    text-align: left !important;
    margin-left: 0 !important;
  }

  .editorial-hero .flex {
    justify-content: flex-start !important;
  }

  .editorial-hero [data-role="PRODUCT"] {
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .editorial-inclusions .card {
    padding-left: 3.25rem !important;
  }

  .editorial-founder > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1.25rem !important;
  }

  .editorial-founder img {
    width: 5.5rem !important;
    height: 7rem !important;
  }

  .editorial-evidence .card {
    border-left: 0 !important;
    border-top: 1px solid var(--rim) !important;
    padding: 1.5rem 0 !important;
  }

  .editorial-evidence .card:first-child {
    border-top-color: var(--champagne) !important;
  }

  .editorial-products > .grid {
    grid-template-columns: 1fr !important;
  }

  .editorial-products > .grid .card {
    padding: 1.25rem !important;
  }

  .editorial-products > .grid > .card:first-child {
    display: flex !important;
    grid-column: 1 / -1;
    padding: 1.25rem !important;
  }

  .editorial-products > .grid > .card:first-child img {
    width: 100% !important;
    height: 14rem !important;
    margin-bottom: 1rem !important;
  }

  .editorial-products > .grid > .card:first-child .btn-cta {
    width: 100%;
  }

  .editorial-products > .grid .card img {
    height: 12rem !important;
  }

  .editorial-products > .grid .btn-cta {
    width: 100%;
  }

  .editorial-booking > div {
    text-align: left !important;
  }

  .editorial-final {
    text-align: left !important;
  }

  .editorial-final .btn-cta {
    justify-content: center;
    text-align: center;
  }

  body > .text-center.px-5.pt-8 h1,
  body > div.text-center + section h1,
  header + script + section h1 {
    font-size: clamp(2.375rem, 10.5vw, 2.75rem) !important;
    line-height: 1.18 !important;
  }

  header + main,
  header + script + main,
  header + script + section,
  header + script + div {
    padding-top: 1.5rem !important;
  }

  .prose-p,
  body > .text-center.px-5.pt-8 > p.max-w-2xl,
  .article p,
  .article li {
    min-width: 0;
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
  }

  body > .text-center.px-5.pt-8 {
    padding-top: 1.5rem !important;
  }

  body { font-size: 16px; }
  section h2 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .article h1 { font-size: clamp(2rem, 9vw, 2.625rem); }
  .sec { padding: 3.75rem 0 !important; }

  header img[alt="Sống An Vui"] {
    width: 120px !important;
  }

  .btn-cta { min-height: 54px; }
}

@media (min-width: 640px) and (max-width: 899px) {
  header .tu-van-btn {
    display: none !important;
  }

  header > div > .flex:last-child > a:first-child:not(:last-child) {
    display: none !important;
  }

  header > div {
    gap: 0.75rem;
  }

  header nav {
    gap: clamp(0.75rem, 2vw, 1.25rem) !important;
  }
}

@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;
  }
}
