.lucky-step-home {
  --home-ink: #261653;
  --home-muted: #625478;
  --home-violet: #6535dc;
  --home-border: #e6dafa;
  --home-card: #fffaff;
  background: #faf6ff;
  color: var(--home-ink);
}

.lucky-step-home .wrap { width: min(1160px, calc(100% - 64px)); }

.lucky-step-home .ls-home-nav {
  position: relative;
  z-index: 1;
  min-height: 76px;
}

.ls-home-nav .brand { font-size: 22px; letter-spacing: -.04em; }
.ls-home-nav .brand img { width: 40px; height: 40px; border-radius: 12px; }
.ls-home-nav .nav-links { gap: 28px; font-weight: 650; }
.ls-home-nav .nav-links a:hover, .ls-home-footer a:hover { color: var(--home-violet); text-decoration: underline; text-underline-offset: 4px; }
.ls-home-nav .lang { min-height: 36px; padding: 4px 14px; background: #ffffffb8; }

.ls-home-hero-surface {
  margin-top: -76px;
  padding-top: 76px;
  background:
    radial-gradient(ellipse at 17% 57%, #f8e7f9cc 0%, transparent 52%),
    radial-gradient(ellipse at 81% 34%, #ddcffb 0%, transparent 61%),
    radial-gradient(ellipse at 64% 93%, #e7e0fd 0%, transparent 48%),
    linear-gradient(#f4edfc 3%, #f5ebfc 73%, #faf6ff 100%);
}

.ls-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  padding-block: 39px 56px;
}

.ls-home-pitch { align-self: center; min-width: 0; }
.ls-home-pitch h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 69px);
  line-height: 1.1;
  font-weight: 820;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.ls-home-subtitle { max-width: 460px; margin: 18px 0 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.4; }
.ls-home-lead { max-width: 440px; margin: 8px 0 0; color: var(--home-muted); font-size: clamp(16px, 1.75vw, 19px); line-height: 1.52; }
.ls-home-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }

.ls-home-button {
  display: inline-flex;
  width: fit-content;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 9px 19px;
  text-align: center;
  font-weight: 750;
  line-height: 1.3;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.ls-home-button-primary { background: #6739df; color: #fff; box-shadow: 0 5px 12px #6739df39; }
.ls-home-button-primary:hover { background: #582dcc; }
.ls-home-button-secondary { border-color: var(--home-border); background: #ffffffa6; color: var(--home-ink); }
.ls-home-button-secondary:hover { background: #fff; box-shadow: 0 3px 10px #6836b418; }

.ls-home-hero-art {
  display: block;
  width: min(66%, 314px);
  height: 150px;
  margin: 5px auto -13px 0;
  object-fit: contain;
  object-position: left center;
}

.lucky-step-home .hero-play {
  width: min(100%, 478px);
  justify-self: end;
  min-width: 0;
  padding: 22px clamp(17px, 3vw, 32px) 17px;
  border: 1px solid #ffffffec;
  border-radius: 30px;
  background: radial-gradient(ellipse at 100% 58%, #f9e9fb 2%, transparent 66%), #f8f3ff;
  box-shadow: 0 14px 35px #6241b82b, inset 0 0 0 1px #ffffff73;
  scroll-margin-top: 16px;
}
.lucky-step-home .hero-play:focus {
  outline: 3px solid #8459ef;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .lucky-step-home .hero-play:focus { animation: ls-home-trial-highlight .95s ease-out; }
}
@keyframes ls-home-trial-highlight {
  0% { box-shadow: 0 0 0 12px #9162fa45, 0 14px 35px #6241b82b; }
  100% { box-shadow: 0 0 0 0 #9162fa00, 0 14px 35px #6241b82b; }
}
.ls-home-play-head { display: flex; align-items: center; gap: 11px; margin: 0 auto 14px; width: fit-content; }
.ls-home-play-head h2 { margin: 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; font-weight: 800; }
.ls-home-play-mark { color: #b77700; font-size: 34px; line-height: .93; font-weight: 850; }
.lucky-step-home .hero-play [data-lucky-step] { min-height: 415px; background: transparent; }
.ls-home-noscript { text-align: center; padding-block: 60px; }
.lucky-step-home .hero-play-link {
  display: block;
  width: fit-content;
  margin: 2px auto 0;
  padding: 2px 8px;
  color: #6145a0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ls-home-features { display: grid; grid-auto-rows: 1fr; gap: 23px; padding-block: 16px 0; scroll-margin-top: 16px; }
.ls-home-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  grid-template-rows: minmax(245px, auto);
  overflow: clip;
  align-items: stretch;
  border: 1px solid #ecdef9;
  border-radius: 27px;
  background: linear-gradient(115deg, #f4eaff, #f8effc 46%, #eadcf9);
  scroll-margin-top: 16px;
}

.ls-home-feature-copy { position: relative; z-index: 1; align-self: center; padding: 27px 0 27px clamp(26px, 5vw, 65px); }
.ls-home-feature-copy h2 { margin: 0; font-size: clamp(27px, 3.4vw, 43px); line-height: 1.13; font-weight: 800; text-wrap: balance; }
.ls-home-feature-copy p { max-width: 340px; margin: 12px 0 0; color: var(--home-muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.55; }
.ls-home-feature-art { position: relative; isolation: isolate; min-width: 0; }
.ls-home-feature-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 73%;
  mask-image: linear-gradient(to right, transparent, #000 20%);
}
.ls-home-language-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  container-type: inline-size;
  width: min(100%, 390px);
  gap: 5px 4px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.ls-home-language-list li {
  padding: 3px 0;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #ffffffa6;
  font-size: clamp(10px, 4.3cqw, 14px);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}
.ls-home-feature-backdrop.ls-home-languages-illustration { object-position: center; }
.ls-home-phone-fan {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  inset: 0 4% 0 1%;
  padding-top: 11px;
}
.ls-home-phone-fan img {
  display: block;
  width: min(26%, 141px);
  height: auto;
  border: 3px solid #fff9ff;
  border-radius: 15px;
  box-shadow: 0 6px 17px #7043ad42, 0 0 0 1px #b79cde;
  transform: translate(10%, 8%) rotate(-13deg);
}
.ls-home-phone-fan img:nth-child(2) { z-index: 1; transform: translateY(-4%); }
.ls-home-phone-fan img:nth-child(3) { transform: translate(-10%, 8%) rotate(13deg); }
.ls-home-settings-shot, .ls-home-tablet-shot {
  position: absolute;
  bottom: 50%;
  left: 53%;
  display: block;
  height: auto;
  box-shadow: 0 8px 25px #694ca144;
}
.ls-home-settings-shot {
  width: min(37%, 159px);
  border: 3px solid #fff9ff;
  border-radius: 16px;
  transform: translate(-34%, 50%) rotate(6deg);
}
.ls-home-tablet-shot {
  width: min(65%, 342px);
  aspect-ratio: 1.65;
  object-fit: cover;
  border: 7px solid #322842;
  border-radius: 17px;
  transform: translate(-50%, 52%) rotate(-4deg);
}

.ls-home-blog { padding: 51px 0 38px; text-align: center; }
.ls-home-blog > h2 { margin: 0; font-size: clamp(29px, 3.6vw, 43px); font-weight: 800; }
.ls-home-blog > p { max-width: 540px; margin: 8px auto 0; color: var(--home-muted); font-size: 16px; line-height: 1.5; }
.ls-home-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 23px; text-align: start; }
.ls-home-blog-card {
  min-width: 0;
  border: 1px solid #ece0fa;
  border-radius: 19px;
  background: var(--home-card);
  box-shadow: 0 4px 14px #56389714;
}
.ls-home-blog-card a { display: block; height: 100%; border-radius: inherit; }
.ls-home-blog-card img { display: block; width: 100%; height: auto; aspect-ratio: 2.1; border-radius: 18px 18px 0 0; object-fit: cover; }
.ls-home-blog-card h3 { margin: 0; padding: 13px 16px 16px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.4; }
.ls-home-blog-card a:hover h3 { color: var(--home-violet); text-decoration: underline; text-underline-offset: 3px; }

.ls-home-footer { padding: 0 0 23px; color: var(--home-muted); }
.ls-home-utilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--home-border); }
.ls-home-utility {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: #fffcff;
  color: var(--home-ink);
  scroll-margin-top: 12px;
}
.ls-home-utility > summary, .ls-home-utility-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.ls-home-utility > summary { list-style: none; }
.ls-home-utility > summary::-webkit-details-marker { display: none; }
.ls-home-utility > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  height: 22px;
  border-radius: 8px;
  background: #f0e9fc;
  color: var(--home-violet);
}
.ls-home-utility[open] > summary::after { content: "−"; }
.ls-home-utility-link { min-height: 52px; }
.ls-home-faq { padding: 2px 12px 12px; }
.ls-home-faq details { padding: 10px 0; border: 0; }
.ls-home-faq summary { font-size: 14px; }
.ls-home-faq p { margin: 6px 0 0; }
.ls-home-feedback-note { padding-top: 8px; border-top: 1px solid var(--home-border); }
.ls-home-qr { display: flex; justify-content: center; padding: 4px 12px 12px; }
.ls-home-qr img { display: block; width: 144px; height: 144px; border-radius: 12px; }
.ls-home-footer .footer-inner { align-items: center; padding-top: 16px; }
.ls-home-footer-brand { display: grid; gap: 3px; }
.ls-home-footer-brand .brand { color: var(--home-ink); font-size: 18px; }
.ls-home-footer-brand .brand img { width: 30px; height: 30px; border-radius: 9px; }

@media (max-width: 800px) {
  .lucky-step-home .wrap { width: min(620px, calc(100% - 40px)); }
  .ls-home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 30px 33px; }
  .ls-home-pitch { position: relative; }
  .ls-home-hero-art { width: 155px; height: 82px; margin: -1px 0 -16px auto; object-position: right center; }
  .lucky-step-home .hero-play { width: 100%; max-width: none; padding-inline: 20px; }
  .ls-home-feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 220px; }
  .ls-home-feature-copy { padding: 22px 24px 0; }
  .ls-home-feature-copy p { max-width: 460px; margin-top: 8px; }
  .ls-home-feature-backdrop { mask-image: linear-gradient(to bottom, transparent, #000 28%); }
  .ls-home-settings-shot { width: min(39%, 135px); }
  .ls-home-tablet-shot { width: min(74%, 305px); }
  .ls-home-utilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .lucky-step-home .wrap { width: calc(100% - 32px); }
  .lucky-step-home .ls-home-nav { min-height: 64px; gap: 9px; }
  .ls-home-nav .brand { gap: 7px; font-size: 18px; white-space: nowrap; }
  .ls-home-nav .brand img { width: 32px; height: 32px; border-radius: 10px; }
  .ls-home-nav .nav-links { gap: 11px; }
  .ls-home-nav .lang { padding-inline: 9px; }
  .ls-home-nav .guide-link { display: none; }
  .ls-home-hero-surface { margin-top: -64px; padding-top: 64px; }
  .ls-home-hero { padding-top: 22px; gap: 15px; }
  .ls-home-pitch h1 { font-size: clamp(33px, 8.9vw, 44px); }
  .ls-home-subtitle { margin-top: 11px; }
  .ls-home-actions { margin-top: 14px; gap: 8px; }
  .ls-home-button { min-height: 44px; padding-inline: 13px; font-size: 14px; }
  .ls-home-hero-art { width: 101px; height: 57px; margin-top: -1px; margin-bottom: -16px; }
  .lucky-step-home .hero-play { border-radius: 24px; padding: 16px 13px 12px; }
  .lucky-step-home .hero-play [data-lucky-step] { min-height: 370px; }
  .ls-home-play-head { margin-bottom: 10px; }
  .ls-home-features { gap: 15px; padding-top: 4px; }
  .ls-home-feature { grid-template-rows: auto 182px; border-radius: 22px; }
  .ls-home-feature-copy { padding: 20px 20px 0; }
  .ls-home-phone-fan img { width: min(26%, 111px); }
  .ls-home-settings-shot { width: min(39%, 107px); }
  .ls-home-tablet-shot { width: min(69%, 232px); }
  .ls-home-blog { padding-block: 31px 26px; }
  .ls-home-blog-grid { grid-template-columns: 1fr; gap: 13px; }
  .ls-home-utilities { gap: 8px; }
  .ls-home-utility[open] { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-home-button { transition: none; }
}
