:root {
  --lp-bg-dark: #09080d;
  --lp-bg-light: #ffffff;
  --lp-bg-accent: #d5c6e8;
  --lp-color-primary: #995ce4;
  --lp-color-primary-dark: #5f3fd3;
  --lp-color-text: #16151a;
  --lp-color-muted: #7a748a;
  --lp-radius-lg: 1.25rem;
  --lp-radius-md: 0.75rem;
  --lp-radius-sm: 0.5rem;
  --lp-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
  --lp-shadow-card: 0 12px 30px rgba(0, 0, 0, 0.22);
  --lp-max-width: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", sans-serif;
  color: var(--lp-color-text);
  background: #f5f2ff;
}

.text-center {
  text-align: center;
}

p {
  font-size: 1rem;
}

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

.lp-page {
  background: linear-gradient(180deg, #f5f2ff 0%, #ffffff 40%, #050508 90%);
}

.section {
  padding: 7.5rem 1.5rem;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--lp-max-width);
}

.section-dark {
  background: var(--lp-bg-dark);
  color: #ffffff;
}

.section-light {
  background: var(--lp-bg-light);
}

.section-accent {
  background: var(--lp-bg-accent);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4rem;
  background: linear-gradient(to right, #a48ed2, #f8c0ea);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  border: none;
  white-space: nowrap;
  width: fit-content;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--lp-bg-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--lp-color-primary);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0.5rem 1.25rem rgba(93, 62, 216, 0.45);
}

.btn i {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--lp-bg-accent);
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Hero */
.section-hero {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-cta {
  position: absolute;
  bottom: 3rem;
  right: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.feature-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.25rem;
  border: 1.5px solid var(--lp-bg-accent);
  box-shadow: none;
}

.features-num {
  position: absolute;
  left: -0.75rem;
  top: -30px;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--lp-bg-accent);
  user-select: none;
  background: #ffffff;
  padding: 0.75rem 0.75rem 0.75rem 0;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-align: center;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.features-cta {
  text-align: center;
  margin-top: 3rem;
}

.features-cta .btn {
  margin: 0 auto;
}

/* Flow */

.flow-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 4rem;
  width: fit-content;
  border-radius: 0.75rem;
  background: #ffffff;
  margin: 0 auto 3rem;
}

.flow-title .section-title {
  font-size: 1.5rem;
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
}

.flow-item {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.flow-cta-wrap {
  text-align: center;
}

.flow-cta-wrap .btn {
  margin: 0 auto;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 47.5rem;
  margin: 0 auto;
}

.grid-item {
  position: relative;
  background: #0b0b10;
  border-radius: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1.5px solid #ffffff;
  line-height: 1.8;
  color: #f0bbe8;
  overflow: hidden;
}

.grid-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 4.5rem;
  color: rgba(240, 187, 232, 0.12);
  z-index: 0;
  pointer-events: none;
}

.grid-text {
  position: relative;
  z-index: 1;
}

.grid-item br {
  content: "";
}

/* FAQ */
.section-faq {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.faq-image {
  max-width: 12.5rem;
  margin: 0 auto 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin: 0 auto 3rem;
}

.faq-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--lp-bg-dark);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.faq-item label {
  display: inline-block;
  flex-shrink: 0;
  width: 2.5rem;
  color: var(--lp-color-primary);
  font-weight: 700;
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: row;
}

/* Footer */
.section-footer {
  color: #ffffff;
}

.footer-title {
  font-size: 1.5rem;
  margin: 0 0 3rem;
}

.footer-meta {
  text-align: center;
  font-size: 11px;
  color: #a5a1b8;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.copyright {
  font-size: .75rem;
  color: #a5a1b8;
  padding: 1rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.6;
}

.about-liver {
  margin: 0 auto 6rem;
  line-height: 1.6;
}

.liver-title {
  margin: 0 auto 2.5rem;
}

.about-columns {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.about-column {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.liver-image {
  width: 45%;
  object-fit: contain;
}

.liver-content {
  width: 50%;
}

.liver-content .section-title {
  margin-bottom: 2.5rem;
}

/* Pains */
.pains-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: end;
}

.pains-image {
  max-width: 50%;
}

#pains-left-image {
  height: auto;
  margin-right: -1.5rem;
  position: relative;
  z-index: 1;
}

#pains-right-image {
  height: auto;
  margin-left: -1.5rem;
  position: relative;
  z-index: 1;
}

.privacy-body {
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.8;
  padding-bottom: 3rem;
  border-bottom: 1px solid #ffffff;
}

/* Consult drawer / panel */

html.is-consult-open,
html.is-consult-open body {
  overflow: hidden;
}

.consult {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.consult__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.consult__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(30rem, calc(100% - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  background: #ffffff;
  /* border-radius: 1.25rem; */
  border: 1px solid rgba(164, 142, 210, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.consult.is-open {
  pointer-events: auto;
}

.consult.is-open .consult__overlay {
  opacity: 1;
}

.consult.is-open .consult__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.consult__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(213, 198, 232, 0.7);
  background: linear-gradient(to right, rgba(164, 142, 210, 0.15), rgba(248, 192, 234, 0.15));
}

.consult__title {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #2a2438;
}

.consult__close {
  border: 0;
  background: transparent;
  color: var(--lp-color-text);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
}

.consult__form {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  overflow: auto;
}

.consult__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.consult__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.consult__label {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--lp-color-text);
}

.consult__req {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(126, 91, 239, 0.12);
  color: var(--lp-color-primary-dark);
  font-weight: 800;
}

.consult__input,
.consult__select,
.consult__radio {
  height: 52px;
}

.consult__input,
.consult__select,
.consult__textarea {
  border: 1px solid rgba(164, 142, 210, 0.45);
  border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  outline: none;
}

.consult__input::placeholder,
.consult__select::placeholder,
.consult__textarea::placeholder {
  color: #a5a1b8;
}


.consult__textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.consult__input:focus,
.consult__select:focus,
.consult__textarea:focus {
  border-color: rgba(126, 91, 239, 0.9);
  box-shadow: 0 0 0 4px rgba(126, 91, 239, 0.18);
}

.consult__radioGroup {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.consult__radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1cdda;
  background: #fff;
  color: #2a2438;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.consult__radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consult__radioIcon {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #d1cdda;
  position: relative;
}

.consult__radio:has(input:checked) {
  border-color: #7e5bef;
  background: rgba(126, 91, 239, 0.08);
}

.consult__radio:has(input:checked) .consult__radioIcon {
  color: #7e5bef;
}

.consult__radio:has(input:checked) .consult__radioIcon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: #7e5bef;
}

.consult__radioLabel {
  flex: 1;
}

.consult__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.consult__submit {
  width: 100%;
  padding: 1rem 0;
}

.consult__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.consult__status {
  font-size: 0.9rem;
  color: #5a556b;
}

.consult__status[data-type="success"] {
  color: #1b7f4b;
}

.consult__status[data-type="error"] {
  color: #b42318;
}

.consult__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .section {
    padding: 5rem 1.25rem;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    left: 50%;
    right: 0;
    transform: translateX(-50%);
    bottom: 2rem;
    width: fit-content;
  }

  .about-liver {
    margin-bottom: 3rem;
  }

  .liver-title {
    max-width: 70%;
  }

  .about-columns {
    gap: 3rem;
  }

  .about-column {
    flex-direction: column;
  }

  /* About: make images appear above text on SP */
  .about-column .liver-image {
    order: 0;
  }

  .about-column .liver-content {
    order: 1;
  }

  .liver-image,
  .liver-content {
    width: 100%;
  }

  .liver-content .section-title {
    margin-bottom: 1.5rem;
  }
  
  .liver-image {
    margin-bottom: 1.5rem;
  }

  .pains-image {
    max-width: 100%;
  }

  .pains-content {
    position: relative;
  }

  /* Pains (SP): checklist image on top, characters below */
  .pains-content {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .pains-image {
    order: 0;
    width: 100%;
  }

  #pains-left-image {
    order: 1;
    height: 180px;
    margin-right: 0;
    margin-top: -1.5rem;
  }

  #pains-right-image {
    order: 1;
    height: 180px;
    margin-left: 0;
    margin-top: -1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    max-width: 95%;
    margin: 0 auto;
  }

  .flow-list {
    margin-bottom: 3rem;
  }

  .grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 90%;
    margin: 0 auto;
  }

  .grid-item {
    font-size: 1.5rem;
  }

  .faq-image {
    max-width: 40%;
    margin-bottom: 1.5rem;
  }

  /* Consult: SP bottom drawer */
  .consult__panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 95dvh;
    /* border-radius: 1.25rem 1.25rem 0 0; */
    transform: translateY(18px);
  }

  .consult.is-open .consult__panel {
    transform: translateY(0);
  }

  .consult__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .consult__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Large desktop: increase base font size */
@media screen and (min-width: 2000px) {
  html {
    font-size: 18px;
  }
}