/* ==========================================================================
   Shay Saung — landing page prototype
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory);
  transition: background-color 180ms var(--ease);
}

.site-header.is-scrolled {
  background: var(--ivory-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-mm);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  transition: background-color 160ms var(--ease);
}

.header-nav a:hover {
  background: var(--ivory-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--font-mm);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

.header-login:hover {
  text-decoration-color: var(--lime-deep);
}

.mobile-nav-details {
  display: none;
}

.nav-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--forest);
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
}

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

.nav-toggle__lines {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__lines::before {
  top: -6px;
}

.nav-toggle__lines::after {
  top: 6px;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  display: none;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--ivory);
}

.mobile-nav-details[open] .mobile-nav {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 8px;
  font-family: var(--font-mm);
  font-size: 21px;
  font-weight: 700;
  color: var(--forest);
}

.mobile-nav a:hover {
  background: var(--ivory-deep);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  gap: 0;
  min-height: 720px;
  padding-left: max(var(--gutter), calc((100vw - var(--page)) / 2));
  padding-right: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 96px) clamp(28px, 4vw, 72px) clamp(52px, 7vw, 96px) 0;
}

.hero-title {
  max-width: 11ch;
  font-family: var(--font-mm);
  font-size: clamp(46px, 6.1vw, 88px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.hero-title span {
  display: block;
}

.hero-lede {
  max-width: 48ch;
  margin-top: clamp(24px, 3vw, 36px);
  font-family: var(--font-mm);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9;
  color: var(--charcoal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero-note {
  margin-top: 18px;
  font-family: var(--font-mm);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-note strong {
  color: var(--forest);
}

.hero-stage {
  position: relative;
  min-height: 720px;
  background: var(--forest);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%, 0 9%, 9% 9%);
  overflow: hidden;
}

.hero-stage__inner {
  position: relative;
  min-height: 720px;
  height: 100%;
}

.hero-stage__label {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mm);
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
}

.hero-stage__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--lime);
}

.hero-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-dash {
  position: absolute;
  top: 10%;
  left: 12%;
  z-index: 2;
  width: 76%;
}

.hero-phone {
  position: absolute;
  bottom: 5%;
  left: 3%;
  z-index: 3;
  width: 27%;
  max-width: 238px;
}

.hero-browser {
  position: absolute;
  right: 3%;
  bottom: 3%;
  z-index: 3;
  width: 34%;
  max-width: 300px;
}

/* --------------------------------------------------------------------------
   Product UI — dashboard
   -------------------------------------------------------------------------- */

.ui-dash {
  width: 100%;
  overflow: hidden;
  background: var(--ivory-soft);
  color: var(--charcoal);
  font-size: 11px;
}

.ui-dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--forest-deep);
  color: var(--ivory);
}

.ui-dash__bar-mark {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ui-dash__bar-title {
  font-family: var(--font-mm);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ui-dash__bar-sample {
  margin-left: auto;
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted-on-dark);
}

.ui-dash__body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 392px;
}

.ui-dash__side {
  padding: 14px 10px;
  background: var(--forest);
  color: var(--ivory);
}

.ui-dash__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px 14px;
}

.ui-dash__brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.ui-dash__brand-name {
  font-family: var(--font-mm);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.ui-dash__brand-sub {
  font-family: var(--font-mm);
  font-size: 7px;
  line-height: 1.4;
  color: var(--muted-on-dark);
}

.ui-dash__nav {
  display: grid;
  gap: 2px;
}

.ui-dash__nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px;
  font-family: var(--font-mm);
  font-size: 9px;
  color: var(--muted-on-dark);
}

.ui-dash__nav-item--active {
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
}

.ui-dash__nav-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1.5px solid currentColor;
}

.ui-dash__main {
  min-width: 0;
  padding: 14px;
  background: var(--ivory-soft);
}

.ui-dash__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ui-dash__title {
  font-family: var(--font-mm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest);
}

.ui-dash__meta {
  margin-top: 2px;
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted);
}

.ui-dash__date {
  font-family: var(--font-mm);
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

.ui-dash__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ui-stat {
  min-width: 0;
  padding: 8px 9px;
  background: var(--white);
}

.ui-stat__label {
  font-family: var(--font-mm);
  font-size: 8px;
  line-height: 1.4;
  color: var(--muted);
}

.ui-stat__value {
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--forest);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dash__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 10px;
  align-items: start;
}

.ui-panel {
  min-width: 0;
  padding: 10px;
  background: var(--white);
}

.ui-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ui-panel__title {
  font-family: var(--font-mm);
  font-size: 10px;
  font-weight: 700;
  color: var(--forest);
}

.ui-panel__hint {
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-table {
  width: 100%;
  font-size: 8px;
}

.ui-table th {
  padding: 0 5px 6px 0;
  border-bottom: 1px solid #e8e2d4;
  font-family: var(--font-mm);
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}

.ui-table td {
  padding: 6px 5px 6px 0;
  border-bottom: 1px solid #f0ebdf;
  color: var(--charcoal);
  white-space: nowrap;
}

.ui-table tr:last-child td {
  border-bottom: 0;
}

.ui-table td:last-child,
.ui-table th:last-child {
  padding-right: 0;
  text-align: right;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 5px;
  font-family: var(--font-mm);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.ui-badge--active {
  background: #e7efd8;
  color: var(--forest);
}

.ui-badge--due {
  background: var(--lime);
  color: var(--forest);
}

.ui-badge--paid {
  background: #ece7dc;
  color: var(--muted);
}

.ui-badge--new {
  background: var(--lime);
  color: var(--forest);
}

.ui-bill {
  display: grid;
  gap: 6px;
}

.ui-bill__title {
  font-family: var(--font-mm);
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
}

.ui-bill__sub {
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-bill__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mm);
  font-size: 8px;
  line-height: 1.5;
}

.ui-bill__row--muted {
  color: var(--muted);
}

.ui-bill__row--total {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid #e8e2d4;
  font-size: 10px;
  font-weight: 700;
  color: var(--forest);
}

.ui-bill__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  margin-top: 2px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-mm);
  font-size: 8px;
  font-weight: 700;
}

.ui-inbox {
  display: grid;
  gap: 7px;
}

.ui-inbox__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #f0ebdf;
}

.ui-inbox__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ui-inbox__name {
  font-family: var(--font-mm);
  font-size: 8px;
  font-weight: 700;
  color: var(--charcoal);
}

.ui-inbox__meta {
  margin-top: 1px;
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-inbox__price {
  font-size: 8px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.ui-catalog {
  display: grid;
  gap: 6px;
}

.ui-catalog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0ebdf;
}

.ui-catalog__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ui-catalog__name {
  font-family: var(--font-mm);
  font-size: 8px;
  font-weight: 700;
  color: var(--charcoal);
}

.ui-catalog__meta {
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-catalog__price {
  font-size: 8px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Product UI — phone
   -------------------------------------------------------------------------- */

.ui-phone {
  width: 100%;
  max-width: 238px;
  padding: 8px;
  background: var(--forest-deep);
  border-radius: 30px;
}

.ui-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 430px;
  overflow: hidden;
  background: var(--ivory);
  border-radius: 23px;
}

.ui-phone__status {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px 0;
  font-size: 7px;
  font-weight: 700;
  color: var(--forest);
}

.ui-phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px 9px;
  border-bottom: 1px solid #e8e2d4;
}

.ui-phone__shop {
  font-family: var(--font-mm);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest);
}

.ui-phone__sub {
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-phone__lang {
  display: flex;
  gap: 2px;
  font-size: 6px;
  font-weight: 700;
}

.ui-phone__lang span {
  padding: 2px 4px;
}

.ui-phone__lang .is-on {
  background: var(--forest);
  color: var(--ivory);
}

.ui-phone__body {
  flex: 1;
  padding: 11px 14px;
  overflow: hidden;
}

.ui-phone__title {
  font-family: var(--font-mm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--forest);
}

.ui-phone__desc {
  margin-top: 2px;
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-phone__cats {
  display: flex;
  gap: 4px;
  margin-top: 9px;
  overflow: hidden;
}

.ui-phone__cat {
  padding: 3px 6px;
  background: var(--white);
  color: var(--forest);
  font-family: var(--font-mm);
  font-size: 6.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ui-phone__cat.is-on {
  background: var(--forest);
  color: var(--ivory);
}

.ui-phone__section {
  margin-top: 11px;
  font-family: var(--font-mm);
  font-size: 8px;
  font-weight: 700;
  color: var(--forest);
}

.ui-phone__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e2d4;
}

.ui-phone__item:last-child {
  border-bottom: 0;
}

.ui-phone__item-main {
  min-width: 0;
}

.ui-phone__item-name {
  font-family: var(--font-mm);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--charcoal);
}

.ui-phone__item-mm {
  font-family: var(--font-mm);
  font-size: 6.5px;
  color: var(--muted);
}

.ui-phone__item-price {
  font-size: 8px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.ui-phone__add {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--lime);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.ui-phone__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e8e2d4;
  background: var(--white);
}

.ui-phone__nav-item {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 40px;
  font-family: var(--font-mm);
  font-size: 6.5px;
  color: var(--muted);
}

.ui-phone__nav-item.is-on {
  background: var(--ivory);
  color: var(--forest);
  font-weight: 700;
}

.ui-phone__nav-icon {
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
}

.ui-phone__call {
  position: absolute;
  right: 9px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: var(--forest);
  color: var(--ivory);
  font-family: var(--font-mm);
  font-size: 6.5px;
  font-weight: 700;
}

.ui-phone__bill {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.ui-phone__bill-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mm);
  font-size: 8px;
  line-height: 1.5;
}

.ui-phone__bill-row--muted {
  color: var(--muted);
}

.ui-phone__bill-row--total {
  padding-top: 6px;
  border-top: 1px solid #e8e2d4;
  font-size: 10px;
  font-weight: 700;
  color: var(--forest);
}

.ui-phone__bill-note {
  margin-top: 8px;
  padding: 7px 8px;
  background: var(--ivory-deep);
  font-family: var(--font-mm);
  font-size: 7px;
  line-height: 1.55;
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   Product UI — storefront browser
   -------------------------------------------------------------------------- */

.ui-browser {
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: 6px solid var(--forest-deep);
  background: var(--white);
}

.ui-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  background: var(--forest-deep);
  color: var(--ivory);
}

.ui-browser__mark {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.ui-browser__url {
  flex: 1;
  overflow: hidden;
  padding: 3px 6px;
  background: var(--forest);
  color: var(--muted-on-dark);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-browser__body {
  padding: 14px;
  background: var(--ivory-soft);
}

.ui-shop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e8e2d4;
}

.ui-shop__name {
  font-family: var(--font-mm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--forest);
}

.ui-shop__tag {
  margin-top: 2px;
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-shop__share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-mm);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.ui-shop__list {
  display: grid;
  margin-top: 9px;
}

.ui-product {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e2d4;
}

.ui-product:last-child {
  border-bottom: 0;
}

.ui-product__thumb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ivory-deep);
}

.ui-product__thumb svg {
  width: 22px;
  height: 22px;
}

.ui-product__name {
  font-family: var(--font-mm);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--charcoal);
}

.ui-product__cat {
  font-family: var(--font-mm);
  font-size: 6.5px;
  color: var(--muted);
}

.ui-product__price {
  font-size: 8px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.ui-shop__note {
  margin-top: 9px;
  font-family: var(--font-mm);
  font-size: 7px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Table card / QR artifact
   -------------------------------------------------------------------------- */

.ui-table-card {
  width: 178px;
  padding: 14px;
  background: var(--ivory);
  text-align: center;
}

.ui-table-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-mm);
  font-size: 8px;
  font-weight: 700;
  color: var(--forest);
}

.ui-table-card__brand svg,
.ui-table-card__brand img {
  width: 14px;
  height: 14px;
}

.ui-table-card__label {
  margin-top: 8px;
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--muted);
}

.ui-table-card__num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.ui-qr {
  width: 104px;
  height: 104px;
  margin: 8px auto 6px;
}

.ui-table-card__hint {
  font-family: var(--font-mm);
  font-size: 6.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Product demonstration
   -------------------------------------------------------------------------- */

.demo {
  padding: var(--section-y) 0;
  background: var(--ivory);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head__copy {
  min-width: 0;
}

.section-head__aside {
  padding-bottom: 6px;
}

.demo-stage {
  position: relative;
  padding: clamp(22px, 3.4vw, 48px);
  overflow: hidden;
  background: var(--ivory-deep);
}

.demo-stage__path {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.demo-stage__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.demo-dash {
  min-width: 0;
}

.demo-store {
  min-width: 0;
}

.demo-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.demo-tab {
  min-height: 44px;
  padding: 0 14px;
  background: var(--ivory);
  color: var(--forest);
  font-family: var(--font-mm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.demo-tab:hover {
  background: var(--white);
}

.demo-tab[aria-selected='true'] {
  background: var(--forest);
  color: var(--ivory);
}

.demo-panel {
  display: grid;
  place-items: center;
  min-height: 476px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--forest);
}

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

.no-js .demo-tabs {
  display: none;
}

.no-js .demo-variant[hidden] {
  display: block;
}

.no-js .demo-variant + .demo-variant {
  margin-top: 32px;
}

.demo-panel .ui-phone {
  max-width: 250px;
}

.demo-panel .ui-browser {
  max-width: 360px;
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: var(--font-mm);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.demo-caption::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--lime-deep);
}

/* --------------------------------------------------------------------------
   Use cases
   -------------------------------------------------------------------------- */

.usecases {
  padding: var(--section-y) 0;
  background: var(--forest);
  color: var(--ivory);
}

.usecases .section-lede {
  color: var(--muted-on-dark);
}

.usecases__path {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 12px;
  overflow: visible;
}

.usecases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 14px;
}

.usecase {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  min-width: 0;
  min-height: 780px;
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--ivory);
  color: var(--charcoal);
}

.usecase__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usecase__title {
  font-family: var(--font-mm);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--forest);
}

.usecase__promise {
  max-width: 24ch;
  font-family: var(--font-mm);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--charcoal);
}

.usecase__copy {
  max-width: 52ch;
  font-family: var(--font-mm);
  font-size: 15px;
  line-height: 1.85;
  color: var(--charcoal);
}

.usecase__list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.usecase__list li {
  display: flex;
  gap: 10px;
  font-family: var(--font-mm);
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal);
}

.usecase__list li::before {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--lime-deep);
}

.usecase__link {
  margin-top: auto;
}

.usecase__visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 330px;
  margin-top: auto;
  padding: 22px;
  background: var(--ivory-deep);
}

.usecase--shop .usecase__visual {
  order: -1;
  margin-top: 0;
  margin-bottom: 0;
}

.usecase--shop .usecase__link {
  margin-top: 0;
}

.usecase__visual .ui-phone {
  max-width: 204px;
}

.usecase__visual .ui-browser {
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits {
  padding: var(--section-y) 0;
  background: var(--ivory);
}

.benefits__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.benefits__head {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}

.benefits__head .section-lede {
  margin-top: 20px;
}

.benefits__list {
  display: grid;
}

.benefit {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(24px, 3vw, 34px) 0;
}

.benefit:first-child {
  padding-top: 0;
}

.benefit__node {
  width: 10px;
  height: 10px;
  margin-top: 14px;
  background: var(--lime-deep);
}

.benefit__claim {
  font-family: var(--font-mm);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--forest);
}

.benefit__detail {
  max-width: 62ch;
  margin-top: 8px;
  font-family: var(--font-mm);
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how {
  padding: var(--section-y) 0;
  background: var(--ivory-deep);
}

.steps {
  position: relative;
  display: grid;
  margin-top: clamp(36px, 5vw, 64px);
}

.steps::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 9px;
  width: 6px;
  background: var(--lime-deep);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 48px) 52px;
}

.step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  background: var(--lime);
  transform: translateY(-50%);
}

.step__title {
  font-family: var(--font-mm);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--forest);
}

.step__copy {
  max-width: 48ch;
  margin-top: 10px;
  font-family: var(--font-mm);
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal);
}

.step__artifact {
  justify-self: end;
  width: 100%;
  max-width: 370px;
  padding: 16px;
  background: var(--white);
}

.step__artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.step__artifact-title {
  font-family: var(--font-mm);
  font-size: 10px;
  font-weight: 700;
  color: var(--forest);
}

.step__artifact-tag {
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted);
}

.step-form {
  display: grid;
  gap: 9px;
}

.step-field {
  display: grid;
  gap: 3px;
}

.step-field span {
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted);
}

.step-field div {
  min-height: 30px;
  padding: 7px 8px;
  background: var(--ivory-soft);
  font-family: var(--font-mm);
  font-size: 9px;
  font-weight: 600;
  color: var(--charcoal);
}

.step-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 3px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--font-mm);
  font-size: 9px;
  font-weight: 700;
}

.step-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ebdf;
}

.step-menu-row:last-child {
  border-bottom: 0;
}

.step-menu-row__name {
  font-family: var(--font-mm);
  font-size: 10px;
  font-weight: 700;
  color: var(--charcoal);
}

.step-menu-row__meta {
  margin-top: 2px;
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted);
}

.step-menu-row__price {
  font-size: 9px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.step-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.step-options span {
  padding: 3px 6px;
  background: var(--ivory-deep);
  font-family: var(--font-mm);
  font-size: 7px;
  color: var(--forest);
}

.step-qr-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-qr-row .ui-table-card {
  flex: 0 0 128px;
  width: 128px;
  padding: 10px;
}

.step-qr-row .ui-qr {
  width: 76px;
  height: 76px;
}

.step-share {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.step-share span {
  font-family: var(--font-mm);
  font-size: 8px;
  color: var(--muted);
}

.step-share div {
  overflow: hidden;
  padding: 7px 8px;
  background: var(--ivory-soft);
  font-size: 8px;
  color: var(--charcoal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-share em {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  background: var(--forest);
  color: var(--ivory);
  font-family: var(--font-mm);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--forest);
  color: var(--ivory);
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__title {
  max-width: 14ch;
  font-family: var(--font-mm);
  font-size: clamp(40px, 5.6vw, 78px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.cta__title span {
  display: block;
}

.cta__lede {
  max-width: 52ch;
  margin-top: 24px;
  font-family: var(--font-mm);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--muted-on-dark);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.cta__note {
  max-width: 58ch;
  margin-top: 20px;
  font-family: var(--font-mm);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-on-dark);
}

.cta__mark {
  position: absolute;
  top: 50%;
  right: -9%;
  z-index: 1;
  width: min(52vw, 740px);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background: var(--charcoal);
  color: var(--ivory);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer__line {
  max-width: 32ch;
  font-family: var(--font-mm);
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-on-dark);
  text-align: right;
}

.footer__wordmark {
  margin: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
  font-family: var(--font-mm);
  font-size: clamp(64px, 14vw, 196px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #39433c;
  white-space: nowrap;
}

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

.footer__col h3 {
  margin-bottom: 10px;
  font-family: var(--font-mm);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
}

.footer__col a,
.footer__col p {
  display: block;
  font-family: var(--font-mm);
  font-size: 14px;
  line-height: 2;
  color: var(--muted-on-dark);
}

.footer__col a:hover {
  color: var(--lime);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 48px;
  padding-top: 24px;
  background: var(--charcoal);
  font-family: var(--font-mm);
  font-size: 13px;
  line-height: 1.7;
  color: #8e9a91;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom a:hover {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-inner {
    min-height: 660px;
  }

  .hero-stage,
  .hero-stage__inner {
    min-height: 660px;
  }

  .hero-dash {
    top: 9%;
    left: 10%;
    width: 79%;
  }

  .hero-phone {
    width: 29%;
  }

  .hero-browser {
    width: 36%;
  }

  .ui-dash__body {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .ui-dash__grid {
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .ui-table {
    font-size: 7.5px;
  }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .hero-copy {
    padding: clamp(48px, 7vw, 76px) 0 0;
  }

  .hero-title {
    max-width: 14ch;
    font-size: clamp(46px, 8vw, 78px);
  }

  .hero-lede {
    max-width: 56ch;
  }

  .hero-stage {
    min-height: 680px;
    margin: 40px calc(var(--gutter) * -1) 0 0;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%, 7% 7%);
  }

  .hero-stage__inner {
    min-height: 680px;
  }

  .hero-dash {
    top: 9%;
    left: 9%;
    width: 78%;
  }

  .hero-phone {
    bottom: 6%;
    left: 4%;
    width: 24%;
  }

  .hero-browser {
    right: 4%;
    bottom: 4%;
    width: 31%;
  }

  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .mobile-nav-details {
    display: block;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions > .btn {
    display: none;
  }

  .demo-stage__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .demo-dash {
    order: 2;
  }

  .demo-store {
    order: 1;
  }

  .demo-panel {
    min-height: 0;
  }

  .demo-panel .ui-phone {
    max-width: 238px;
  }

  .demo-panel .ui-browser {
    max-width: 340px;
  }

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

  .usecase {
    min-height: 0;
  }

  .usecase--shop .usecase__visual {
    order: 0;
  }

  .usecase__visual {
    min-height: 300px;
    margin-top: 0;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits__head {
    position: static;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 48px;
  }

  .step__artifact {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
    --section-y: 76px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__en {
    font-size: 8px;
  }

  .hero-copy {
    padding-top: 40px;
  }

  .hero-title {
    font-size: clamp(42px, 10.5vw, 64px);
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-stage {
    min-height: 0;
    margin-top: 36px;
    padding: 20px 20px 28px;
    clip-path: none;
  }

  .hero-stage__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-stage__label {
    position: static;
    order: -1;
    margin-bottom: 16px;
  }

  .hero-path {
    display: none;
  }

  .hero-dash {
    position: static;
    width: 100%;
  }

  .hero-dash .ui-dash__side {
    display: none;
  }

  .hero-dash .ui-dash__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-dash .ui-dash__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-dash .ui-dash__grid {
    grid-template-columns: 1fr;
  }

  .hero-dash .ui-dash__grid .ui-panel:first-child {
    display: none;
  }

  .hero-dash .ui-dash__date {
    display: none;
  }

  .hero-phone {
    position: static;
    width: 220px;
    max-width: 220px;
    margin: 24px auto 0;
  }

  .hero-browser {
    position: absolute;
    right: -72px;
    bottom: -8px;
    width: 238px;
    max-width: 238px;
    opacity: 0.94;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .section-head__aside {
    padding-bottom: 0;
  }

  .section-heading {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.38;
  }

  .section-lede {
    font-size: 16px;
    line-height: 1.85;
  }

  .demo-stage {
    padding: 18px;
  }

  .demo-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .demo-tab {
    padding: 0 8px;
    font-size: 13px;
  }

  .demo-panel {
    padding: 18px;
  }

  .demo-panel .ui-phone {
    max-width: 220px;
  }

  .demo-panel .ui-browser {
    max-width: 100%;
  }

  .demo-caption {
    font-size: 11px;
  }

  .usecases__path {
    height: 44px;
  }

  .usecase {
    padding: 22px;
  }

  .usecase__promise {
    font-size: 20px;
  }

  .usecase__visual {
    padding: 18px;
  }

  .usecase__visual .ui-phone {
    max-width: 190px;
  }

  .usecase__visual .ui-browser {
    max-width: 100%;
  }

  .benefit {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 0;
  }

  .benefit__node {
    width: 8px;
    height: 8px;
    margin-top: 12px;
  }

  .benefit__claim {
    font-size: 22px;
  }

  .benefit__detail {
    font-size: 15px;
  }

  .steps::before {
    left: 7px;
    width: 5px;
  }

  .step {
    padding: 26px 0 26px 38px;
  }

  .step::before {
    width: 19px;
    height: 19px;
  }

  .step__title {
    font-size: 23px;
  }

  .step__copy {
    font-size: 15px;
  }

  .step__artifact {
    padding: 14px;
  }

  .step-qr-row {
    flex-direction: column;
    align-items: stretch;
  }

  .step-qr-row .ui-table-card {
    align-self: center;
  }

  .cta__title {
    font-size: clamp(36px, 9vw, 56px);
  }

  .cta__mark {
    top: auto;
    right: -30%;
    bottom: -18%;
    width: 92vw;
    transform: none;
    opacity: 0.2;
  }

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

  .cta__actions .btn {
    width: 100%;
  }

  .cta__actions .text-link {
    justify-content: center;
  }

  .footer__top {
    flex-direction: column;
    gap: 20px;
  }

  .footer__line {
    max-width: 40ch;
    text-align: left;
  }

  .footer__wordmark {
    font-size: clamp(58px, 18vw, 110px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-actions .header-login {
    display: none;
  }

  .hero-stage {
    padding: 16px 16px 22px;
  }

  .hero-phone {
    width: 196px;
    max-width: 196px;
  }

  .hero-browser {
    right: -96px;
    width: 220px;
    max-width: 220px;
  }

  .ui-phone__screen {
    height: 400px;
  }

  .demo-panel .ui-phone {
    max-width: 196px;
  }

  .usecase__visual .ui-phone {
    max-width: 180px;
  }

  .usecase__visual .ui-table-card {
    width: 156px;
  }

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