/* ============================================================
   LuluPal Experience Layer
   Carries the intro page's scale, solid color fields and strong
   hierarchy through the store without changing content or behavior.
   ============================================================ */

:root {
  --experience-band: #e3f1ed;
  --experience-band-strong: #d4e9e3;
  --experience-line: #b9d3cc;
  --experience-coral: #f27567;
  --experience-indigo: #7279c6;
  --experience-gold: #c78d24;
}

body {
  font-size: 16px;
  line-height: 1.65;
  background-color: #f3f8f6;
  background-image: radial-gradient(circle, rgba(22, 56, 58, .05) 1px, transparent 1.2px);
  background-size: 24px 24px;
}

#view {
  position: relative;
  isolation: isolate;
  padding-top: 38px;
  padding-bottom: 64px;
}

#view::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 210px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--experience-line);
  background: var(--experience-band);
}

#view:has(.home-stage)::before,
#view:empty::before {
  display: none;
}

/* Navigation and global controls */
.topbar {
  height: 64px;
  border-bottom-color: var(--experience-line);
}

.searchbar {
  height: 44px;
}

.searchbar input,
.topnav a {
  font-size: 15px;
}

.topnav {
  gap: 4px;
  padding: 4px;
  border: 1px solid #c4d7d1;
  border-radius: 8px;
  background: #edf6f3;
}

.topnav__group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topnav__divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: #bed2cc;
}

.topnav a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #385b58;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.topnav a::after {
  display: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #163d3a;
  border-color: #c2d8d1;
  background: #fff;
}

.topnav a.active {
  color: #fff;
  border-color: #217f79;
  background: #217f79;
  box-shadow: 0 2px 7px rgba(25, 94, 89, .18);
  text-shadow: none;
}

.topnav .nav-wish,
.topnav .nav-avatar {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.topnav .nav-wish {
  font-size: 21px;
}

.topnav .nav-avatar.active {
  border-color: #217f79;
  background: #d7ece7;
  box-shadow: inset 0 0 0 1px #fff, 0 2px 7px rgba(25, 94, 89, .16);
}

.btn {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 15px;
  line-height: 1.35;
}

.btn--lg {
  min-height: 48px;
  padding: 11px 20px;
  font-size: 16px;
}

.btn--primary {
  background: #217f79;
  border-color: #217f79;
}

.btn--ghost {
  border-color: #afc2bc;
}

.chip {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 750;
}

.chip.on {
  color: #fff;
  background: #217f79;
  border-color: #217f79;
}

.seg__btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.seg__btn.on {
  color: #fff;
  background: #217f79;
}

/* Page headings */
.page-title {
  margin-bottom: 22px;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--experience-line);
  font-size: 36px;
  line-height: 1.18;
}

.page-title::after,
.member-head::after,
.lib-head::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 14px;
  background: var(--experience-coral);
}

#view > div[style*="text-align:center"] .page-title::after {
  margin-right: auto;
  margin-left: auto;
}

.page-lead {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.section-title,
.rail__head h2 {
  padding-left: 15px;
  font-size: 23px;
  line-height: 1.3;
}

.section-title::before,
.rail__head h2::before {
  width: 5px;
  background: var(--experience-coral);
}

.back {
  min-height: 40px;
  align-items: center;
  font-size: 15px;
  font-weight: 750;
}

/* Panels, information and forms */
.panel,
.post,
.cmn,
.inv-step,
.member-note,
.review-summary,
.review-form,
.review-mine,
.review,
.cart-item,
.device,
.follow-chip,
.compare-wrap {
  border-color: #c7d8d3;
}

.panel {
  padding: 24px;
}

#view > .panel,
.account > .panel,
.account > div > .panel,
.detail__side > .panel,
.creator-hero + .panel,
.author-head {
  border-top: 4px solid #86c5bc;
}

.setting {
  min-height: 68px;
  padding: 16px 0;
  gap: 18px;
}

.setting__t {
  font-size: 17px !important;
  line-height: 1.45;
}

.setting__d {
  font-size: 15px !important;
  line-height: 1.75;
}

.field {
  gap: 8px;
}

.field > label {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.cmn-form input,
.cmn-form textarea,
.review-form__text,
.cmt-form__in,
.inv-linkbox__in {
  min-height: 46px;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.55;
}

.field textarea,
.cmn-form textarea,
.review-form__text {
  min-height: 120px;
}

.readable {
  max-width: 920px;
  font-size: 16px;
  line-height: 1.9;
}

.readable .setting__d {
  font-size: 16px !important;
  line-height: 1.9;
}

.readable table,
.compare {
  font-size: 15px !important;
}

#view code {
  font-size: 14px !important;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

[data-terms-body] {
  max-width: 920px;
  font-size: 16px;
  line-height: 1.9;
}

[data-terms-body] p,
[data-terms-body] li {
  line-height: 1.9 !important;
}

.readable table th,
.readable table td,
.compare th,
.compare td {
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.55;
}

/* Store home */
.home-stage .hero {
  border-color: var(--experience-line);
}

.home-stage .hero__title {
  max-width: 570px;
  font-size: 46px;
  line-height: 1.16;
}

.home-stage .hero__sub {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.75;
}

.hero__kicker,
.member-promo__kicker,
.daily-pick__kicker,
.browse-head__eyebrow,
.cat-section__head span {
  font-size: 14px;
}

.home-aside .member-promo__title {
  font-size: 22px;
  line-height: 1.35;
}

.home-aside .member-promo__sub,
.daily-pick__meta {
  font-size: 15px;
  line-height: 1.6;
}

.home-aside .member-promo__tiers span {
  font-size: 13px;
}

.daily-pick__name {
  font-size: 19px;
}

.cat-section {
  border-block: 1px solid var(--experience-line);
  background: #edf6f3;
}

.cat-section__head strong {
  font-size: 15px;
}

.cat-card {
  min-height: 106px;
  border-color: #bfd3cd;
  background: #fff;
}

.cat-card__name {
  font-size: 17px;
}

.cat-card__desc,
.cat-card__count {
  font-size: 14px;
}

.rail {
  padding-top: 34px;
  padding-bottom: 36px;
}

.rail__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.rail__more {
  font-size: 15px;
}

.rail__track {
  grid-auto-columns: 204px;
}

/* Product cards */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.card {
  border-color: #bfd0cb;
}

.card__body {
  gap: 7px;
  padding: 13px 14px 15px;
}

.badge {
  padding: 3px 7px;
  font-size: 12px;
}

.card__name {
  min-height: 46px;
  font-size: 17px;
  line-height: 1.4;
}

.card__author {
  font-size: 14px;
}

.stars,
.stars .count {
  font-size: 13px;
}

.price {
  font-size: 17px;
}

.price small,
.price__old {
  font-size: 13px;
}

/* Browse */
.browse-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
}

.browse-sidebar {
  padding: 20px 18px;
  border: 1px solid var(--experience-line);
  border-left: 5px solid #217f79;
  background: #fff;
}

.browse-sidebar__title {
  margin-bottom: 16px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid var(--experience-line);
  font-size: 20px;
}

.browse-shell .filters {
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.browse-shell .filter-row {
  gap: 10px;
}

.browse-shell .filter-row > .label {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.browse-head {
  min-height: 116px;
  margin: -14px 0 24px;
  padding: 18px 22px;
  border: 1px solid var(--experience-line);
  border-left: 5px solid var(--experience-coral);
  background: rgba(255, 255, 255, .76);
}

.browse-head h1 {
  font-size: 36px;
  line-height: 1.2;
}

.result-count,
.sort-select {
  min-height: 42px;
  font-size: 15px;
}

.sort-select {
  padding: 8px 13px;
}

/* Product detail and cart */
.detail {
  gap: 40px;
}

.detail__side {
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--experience-line);
  border-top: 5px solid var(--experience-coral);
  background: rgba(255, 255, 255, .88);
}

.detail__name {
  font-size: 32px;
  line-height: 1.25;
}

.detail__author,
.author-row__by,
.author-link {
  font-size: 15px;
}

.detail__block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--experience-line);
}

.detail__block h3 {
  font-size: 20px;
}

.detail__block p,
.note,
.kv .v {
  font-size: 15px;
  line-height: 1.75;
}

.kv .k {
  font-size: 14px;
  font-weight: 750;
}

.buybox .price {
  font-size: 30px;
}

.cart-item {
  padding: 16px;
}

.cart-item__name {
  font-size: 17px;
}

.cart-item__meta,
.cart-item__remove,
.summary .line {
  font-size: 15px;
}

.summary .line.total {
  font-size: 20px;
}

/* Membership */
.member-head,
.lib-head {
  position: relative;
  margin-bottom: 30px;
  padding: 4px 0 24px;
  border-bottom: 2px solid var(--experience-line);
}

.member-head .page-title,
.lib-head .page-title {
  padding-bottom: 0;
  border: 0;
  font-size: 36px;
}

.member-head .page-title::after,
.lib-head .page-title::after {
  display: none;
}

.member-head .page-lead {
  margin-top: 10px !important;
}

.tiers {
  gap: 18px;
}

.tier {
  gap: 10px;
  padding: 26px 24px;
  border-width: 2px;
  border-color: #bfd0cb;
}

.tier--cyan { border-top: 6px solid #2b9b94; }
.tier--purple { border-top: 6px solid var(--experience-indigo); }
.tier--pink { border-top: 6px solid #d95568; }

.tier__ribbon {
  top: -13px;
  padding: 5px 10px;
  font-size: 13px;
}

.tier__name {
  font-size: 24px;
}

.tier__tagline,
.tier__feat,
.tier__price small,
.tier__save,
.tier__trial {
  font-size: 15px;
  line-height: 1.6;
}

.tier__price {
  font-size: 36px;
}

.tier__feats {
  gap: 11px;
}

.member-notes {
  gap: 16px;
  margin-top: 28px;
}

.member-note {
  padding: 18px;
}

.member-note__t {
  font-size: 17px;
}

.member-note__d {
  font-size: 15px;
  line-height: 1.7;
}

/* Account, creator and author */
.account {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.profile {
  gap: 12px;
  padding: 28px 22px;
}

.profile__name {
  font-size: 21px;
}

.profile__tag {
  font-size: 15px;
}

.profile-menu {
  width: 100%;
  overflow: hidden;
  border: 1px solid #bdcec9;
  border-radius: 8px;
  background: #fbfdfc;
}

.profile-menu__item {
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #dce6e2;
  color: #173f3c;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  transition: color .16s ease, background .16s ease;
}

.profile-menu__item:last-child {
  border-bottom: 0;
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible {
  color: #176d67;
  background: #e8f4f1;
}

.profile-menu__item .btn__ico {
  width: 21px;
  height: 21px;
  color: #217f79;
}

.profile-menu__arrow {
  color: #77928e;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

/* Full-screen onboarding navigation */
.home-guide__advance {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-guide__advance::after {
  content: "›";
  position: absolute;
  right: 50%;
  bottom: clamp(24px, 4vh, 44px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #a9c9c1;
  border-radius: 50%;
  color: #176d67;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 20px rgba(24, 77, 72, .14);
  font-size: 31px;
  line-height: 1;
  transform: translateX(50%);
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.home-guide__advance:hover::after,
.home-guide__advance:focus-visible::after {
  color: #fff;
  background: #217f79;
  transform: translateX(56%);
}

.home-guide[data-guide-step="3"] .home-guide__advance {
  display: none;
}

.home-guide .home-onboarding__mascot,
.home-guide .home-onboarding__content {
  pointer-events: none;
}

.home-guide__back,
.home-guide__actions a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.home-guide__back.btn {
  width: auto;
  min-height: 42px;
  padding: 8px 13px;
  border-color: #b7cbc6;
  background: rgba(255, 255, 255, .82);
}

.home-guide__back .btn__ico {
  transform: rotate(180deg);
}

.home-guide__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .home-guide__advance::after {
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .home-guide__advance:hover::after,
  .home-guide__advance:focus-visible::after {
    transform: translateX(4px);
  }

  .home-guide__actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-guide__back.btn {
    width: auto;
  }
}

.creator-hero {
  padding: 24px;
  border: 1px solid var(--experience-line);
  border-left: 5px solid var(--experience-indigo);
  background: rgba(255, 255, 255, .78);
}

.step {
  padding: 18px;
  border-color: #c5d7d2;
}

.step__no {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.step__t {
  font-size: 17px;
}

.step__d {
  font-size: 15px;
  line-height: 1.65;
}

.author-head {
  padding: 28px;
}

.author-head__name {
  font-size: 26px;
}

.author-head__bio {
  font-size: 16px;
  line-height: 1.7;
}

.author-stat__v {
  font-size: 21px;
}

.author-stat__l,
.follow-chip {
  font-size: 14px;
}

/* Social, commission and invite pages */
.post {
  padding: 22px;
  border-left: 4px solid #9ecfc7;
}

.post__author,
.post__text {
  font-size: 16px;
}

.post__kind,
.post__time,
.post-teaser__k,
.post__cmtcount,
.cmt__t {
  font-size: 13px;
}

.post-teaser__n,
.review-form__h,
.review-mine__t,
.gate-box__t,
.cmn-form__h {
  font-size: 17px;
}

.post-teaser__go,
.post-like,
.cmt,
.review__text,
.gate-box__d {
  font-size: 15px;
}

.cmn {
  padding: 20px;
  border-left: 4px solid var(--experience-indigo);
}

.cmn__status,
.cmn__by,
.cmn__ap,
.cmn__foot .btn {
  font-size: 14px;
}

.cmn__budget,
.cmn__title {
  font-size: 18px;
}

.cmn__text {
  font-size: 15px;
  line-height: 1.7;
}

.inv-share__label,
.inv-stat__l,
.inv-milestone__d {
  font-size: 14px;
}

.inv-stat__v {
  font-size: 30px;
}

.inv-milestone__t,
.inv-step__d,
.inv-terms li {
  font-size: 15px;
}

.inv-step__t {
  font-size: 17px;
}

/* Empty states and footer */
.empty {
  min-height: 360px;
  padding: 42px 24px;
  border-style: solid;
  border-left: 5px solid var(--experience-gold);
  background: rgba(255, 255, 255, .82);
}

.empty__art {
  width: 230px;
}

.empty__title {
  font-size: 23px;
}

.empty__sub {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
}

.sync-note {
  min-height: 40px;
  padding: 7px 13px;
  font-size: 14px;
}

.sitefoot {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .topnav { gap: 3px; }
  .topnav a { padding-right: 8px; padding-left: 8px; font-size: 14px; }
  .searchbar { max-width: 310px; }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .topbar {
    min-height: 112px;
    height: auto;
    align-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    margin-left: auto;
  }

  .searchbar {
    flex: 0 1 420px;
    max-width: 420px;
    margin-right: auto;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 5px;
  }

  .topnav a {
    min-height: 36px;
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .browse-shell,
  .account {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    position: static;
  }

  .browse-shell .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browse-shell .chip {
    width: auto;
  }

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

@media (max-width: 860px) {
  #view {
    padding: 28px 16px calc(var(--bottomnav-h) + 38px);
  }

  #view::before {
    height: 176px;
  }

  .topbar {
    height: 60px;
  }

  .searchbar {
    height: 42px;
  }

  .bottomnav > a {
    font-size: 12px;
  }

  .page-title,
  .member-head .page-title,
  .lib-head .page-title {
    font-size: 30px;
  }

  .page-lead {
    font-size: 16px;
  }

  .panel,
  .author-head,
  .creator-hero {
    padding: 20px;
  }

  .home-stage .hero__title {
    font-size: 36px;
  }

  .home-stage .hero__sub {
    font-size: 16px;
  }

  .browse-shell {
    gap: 20px;
  }

  .browse-head {
    min-height: 0;
    margin-top: 0;
  }

  .browse-head h1 {
    font-size: 30px;
  }

  .detail {
    gap: 24px;
  }

  .detail__side {
    position: static;
    padding: 20px;
  }

  .detail__name {
    font-size: 28px;
  }

  .member-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #view {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
    overflow-x: hidden;
  }

  .btn,
  .btn--lg {
    font-size: 15px;
  }

  .page-title,
  .member-head .page-title,
  .lib-head .page-title {
    font-size: 28px;
  }

  .section-title,
  .rail__head h2 {
    font-size: 21px;
  }

  .home-stage .hero__title {
    font-size: 33px;
  }

  .home-stage .hero {
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-rows: 340px auto;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
  }

  .home-stage,
  .home-stage > *,
  .home-aside,
  .home-aside > * {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 28px) !important;
  }

  .home-stage .hero .art {
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: 340px;
    object-fit: contain;
    object-position: center;
    background: #f3f8f6;
  }

  .home-stage .hero__inner {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: 100% !important;
    padding: 24px 22px;
    border-top: 1px solid var(--experience-line);
    background: #f8fbfa;
  }

  .home-stage .hero__title {
    max-width: 100%;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .home-stage .hero__sub {
    max-width: 100%;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .home-stage .hero__cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stage .hero__cta .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .browse-shell .filters {
    grid-template-columns: 1fr;
  }

  .browse-head {
    padding: 17px;
  }

  .browse-head h1 {
    font-size: 28px;
  }

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

  .grid .card__body {
    padding: 11px;
  }

  .grid .card__name {
    min-height: 43px;
    font-size: 16px;
  }

  .grid .card__author,
  .grid .price {
    font-size: 14px;
  }

  .tier {
    padding: 24px 20px;
  }

  .detail__side {
    padding: 18px;
  }

  .setting {
    align-items: flex-start;
  }

  .sitefoot {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .cat-card {
    transition: none;
  }
}
