:root {
  --surface: #f6f3ed;
  --surface-strong: #efe8df;
  --ink: #111416;
  --ink-soft: #56606a;
  --accent: #1f8a82;
  --accent-soft: rgba(31, 138, 130, 0.12);
  --line: rgba(17, 20, 22, 0.12);
  --shadow: 0 20px 45px rgba(17, 20, 22, 0.08);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

body {
  background: linear-gradient(180deg, #f7f4ee 0%, #f1ece4 100%);
}

header {
  background: rgba(246, 243, 237, 0.86);
  backdrop-filter: blur(16px);
}

.hero {
  padding-top: 7rem;
}

.hero-grid {
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 560px;
}

.hero h1 .hero-accent {
  display: inline;
}

.hero p.lede {
  font-size: 1.05rem;
  max-width: 32rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
}

.btn-primary {
  box-shadow: var(--shadow);
}

.rail-wrapper {
  position: fixed;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}

.rail-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 20, 22, 0.06);
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.28rem 0.34rem;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 10px 28px rgba(17, 20, 22, 0.04);
  backdrop-filter: blur(10px);
}

.rail-seg {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.42rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 1.2;
}

.rail-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(17, 20, 22, 0.35);
  opacity: 0.7;
}

.rail-seg.active .rail-dot,
.rail-seg:hover .rail-dot {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.12);
}

.rail-seg.active {
  color: var(--ink);
}

.rail-label {
  white-space: nowrap;
}

.philosophy {
  background: linear-gradient(180deg, rgba(31,138,130,0.05), rgba(255,255,255,0.4));
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.benefit-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reviews-band,
.results-band,
.faq-band {
  background: transparent;
}

.carousel-shell {
  display: grid;
  gap: 0.8rem;
}

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.carousel-caption {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.reviews-grid,
.results-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1rem;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-grid::-webkit-scrollbar,
.results-grid::-webkit-scrollbar {
  display: none;
}

.review-card,
.result-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.review-card,
.result-image-frame {
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.review-card {
  min-height: 320px;
  padding: 0.8rem;
}

.review-card img,
.result-image-frame img {
  border-radius: 1rem;
}

.result-image-frame {
  min-height: 360px;
  padding: 0.8rem;
}

.product {
  grid-template-columns: 0.9fr 1.1fr 1.1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-radius: 1.35rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.product-visual {
  border-radius: 1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq-item p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.checkout-promo {
  padding: 1rem 0 5rem;
}

.checkout-promo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.8rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.checkout-promo-card {
  padding: 1.4rem;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(31,138,130,0.13), rgba(255,255,255,0.95));
  border: 1px solid rgba(31,138,130,0.2);
}

.checkout-promo-card .check-list {
  margin-bottom: 1rem;
}

.cta {
  padding-bottom: 5rem;
}

@media (max-width: 1024px) {
  .rail-wrapper {
    left: 0.75rem;
  }
  .rail {
    display: none;
  }
  .rail[data-open="true"] {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    border-radius: 1rem;
    padding: 0.7rem;
  }
  .rail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-card,
  .result-card {
    flex-basis: min(78vw, 360px);
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 1rem;
  }
  .hero {
    padding-top: 6rem;
  }
  .hero-grid,
  .faq-grid,
  .custom-grid,
  .founder {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .benefit-grid,
  .product,
  .checkout-promo-grid {
    grid-template-columns: 1fr;
  }
  .product {
    padding: 1.2rem;
  }
  .review-card,
  .result-card {
    flex-basis: 84vw;
  }
  .review-card,
  .result-image-frame {
    min-height: 260px;
  }
  .rail-wrapper {
    left: 0.5rem;
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

body.site-home {
  background: linear-gradient(180deg, #f7f4ee 0%, #f2efe9 40%, #f7f4ee 100%);
}

body.site-home section {
  padding: clamp(5rem, 8vw, 8.5rem) 0;
}

body.site-home .hero {
  padding-top: 7rem;
}

body.site-home .section-head {
  margin-bottom: 2.75rem;
}

body.site-home .section-head h2 {
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  max-width: 720px;
}

body.site-home .foundeder,
body.site-home .founder,
body.site-home .print-grid,
body.site-home .faq-grid {
  gap: clamp(2rem, 4vw, 4rem);
}

body.site-home .philosophy,
body.site-home .print-band,
body.site-home .reviews-band,
body.site-home .results-band,
body.site-home .faq-band,
body.site-home .cta {
  background: transparent;
  border: none;
}

body.site-home .philosophy {
  background: linear-gradient(180deg, rgba(31,138,130,0.04), rgba(255,255,255,0.35));
}

body.site-home .benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

body.site-home .benefit-card {
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: none;
  padding: 1.3rem 1.15rem;
}

body.site-home .benefit-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
}

body.site-home .benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

body.site-home .evolution-section {
  background: linear-gradient(180deg, rgba(17,20,22,0.03), rgba(31,138,130,0.05));
}

body.site-home .evolution-intro {
  max-width: 760px;
}

body.site-home .evolution-intro p {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

@media (min-width: 761px) {
  html[lang="vi"] body.site-home .evolution-intro h2 {
    white-space: nowrap;
    font-size: clamp(2rem, 4vw, 3.25rem);
  }
}

body.site-home .evolution-visual {
  position: relative;
  margin: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
}

body.site-home .evolution-visual img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

body.site-home .evolution-image-fallback {
  display: none;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--ink-soft);
  text-align: center;
}

body.site-home .evolution-visual img:not([src]),
body.site-home .evolution-visual img[style*="display: none"] + .evolution-image-fallback {
  display: none;
}

body.site-home .evolution-timeline {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

body.site-home .evolution-stage {
  min-width: 0;
}

body.site-home .evolution-stage-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
}

body.site-home .evolution-stage-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.site-home .evolution-stage-copy {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

body.site-home .evolution-stage-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

body.site-home .evolution-stage h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

body.site-home .evolution-stage h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

body.site-home .evolution-stage p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

body.site-home .evolution-closing {
  max-width: 680px;
  margin: 2rem 0 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

body.site-home .product {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.25fr;
  gap: 1.5rem;
  padding: 1.45rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.7);
  box-shadow: none;
  margin-bottom: 0.9rem;
}

body.site-home .product:last-child {
  border-bottom: 1px solid var(--line);
}

body.site-home .product-level .plevel-tag {
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

body.site-home .product h3 {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  margin-bottom: 0.4rem;
}

body.site-home .product .pdesc {
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

body.site-home .product-visual {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

body.site-home .product-visual img {
  object-fit: cover;
}

body.site-home #essentials-precision {
  padding-top: 1rem;
}

body.site-home #essentials-precision .benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.site-home #essentials-precision .benefit-card {
  padding: 1.5rem 1.2rem;
}

body.site-home #essentials-precision .essentials-compact {
  gap: 1rem;
}

body.site-home #essentials-precision .product-view-link {
  display: inline-block;
  margin-top: 0.8rem;
}

body.site-home #founder {
  padding-top: 2rem;
}

body.site-home .founder {
  align-items: center;
}

body.site-home .founder-visual {
  border-radius: 1.5rem;
  box-shadow: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}

body.site-home .founder-cred {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

body.site-home .founder h2 {
  max-width: 560px;
}

body.site-home .founder p {
  font-size: 1.02rem;
  line-height: 1.7;
}

body.site-home .print-grid {
  align-items: center;
}

body.site-home .print-diagram {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  box-shadow: none;
  background: rgba(255,255,255,0.8);
}

body.site-home .benefit-row {
  padding: 0.9rem 0;
  font-size: 0.98rem;
}

body.site-home .faq-grid {
  align-items: start;
}

body.site-home .faq-list {
  gap: 0.7rem;
}

body.site-home .faq-item {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.7);
  box-shadow: none;
}

body.site-home .faq-item summary {
  font-size: 0.98rem;
}

body.site-home .faq-item p {
  font-size: 0.95rem;
  line-height: 1.65;
}

body.site-home .split {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

body.site-home .split-panel {
  background: transparent;
  padding: clamp(1.35rem, 2vw, 2.2rem);
}

body.site-home .split-panel h3 {
  font-size: clamp(1.8rem, 2vw, 2.3rem);
}

body.site-home .check-list li {
  padding: 0.8rem 0;
}

body.site-home .cta {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body.site-home footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  body.site-home .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-home .product {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body.site-home .evolution-timeline {
    grid-template-columns: 1fr;
  }

  body.site-home .evolution-stage-image {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  body.site-home section {
    padding: 4.5rem 0;
  }

  body.site-home .evolution-section {
    padding: 3.75rem 0;
  }

  body.site-home .evolution-visual {
    margin: 1.5rem 0 1.8rem;
  }

  body.site-home .evolution-timeline {
    gap: 1.15rem;
  }

  body.site-home .evolution-stage-image {
    margin-right: auto;
    margin-left: auto;
  }

  body.site-home .hero-grid,
  body.site-home .founder,
  body.site-home .faq-grid,
  body.site-home .print-grid,
  body.site-home .split {
    grid-template-columns: 1fr;
  }

  body.site-home .benefit-grid,
  body.site-home #essentials-precision .benefit-grid {
    grid-template-columns: 1fr;
  }

  body.site-home .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  body.site-home .section-head {
    margin-bottom: 2rem;
  }

  body.site-home .faq-item summary {
    font-size: 0.95rem;
  }
}
