/* Reji landing page: same paper, indigo noren and vermilion hanko as the register. */
[data-lang="ja"] [lang="en"]:not(html), [data-lang="en"] [lang="ja"]:not(html) { display: none !important; }

body.lp { background: var(--paper); color: var(--ink); overflow-x: hidden; }
.lp-wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.lp-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.lp-band { background: var(--mist); border-block: 1px solid var(--line-soft); }

/* header */
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: 0.6rem clamp(1rem, 3vw, 2rem); }
.lp-top .brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; }
.lp-top .brand-mark { width: 30px; height: 30px; }
.lp-top .brand-name { font-size: var(--t-lg); font-weight: 700; letter-spacing: 0.04em; }
.lp-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.lp-nav a { color: #dfe4f2; text-decoration: none; font-size: var(--t-sm); }
.lp-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lp-tools { display: flex; align-items: center; gap: 0.6rem; }
.lp-top .lang-btn { color: #fff; }
.btn.lp-open { background: #fff; border-color: #fff; color: var(--ai); min-height: 40px; font-weight: 700; }
@media (max-width: 900px) { .lp-nav { display: none; } .lp-tools { margin-left: auto; } }

/* hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  width: min(1200px, 100% - 2.5rem); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.nw { white-space: nowrap; }
.lp-hero h1 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.18; letter-spacing: 0.01em; color: var(--ai-deep); }
.lp-lead { margin: 0 0 1.75rem; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.85; color: var(--ink-soft); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lp-ctas.center { justify-content: center; margin-top: 2.5rem; }
.lp-ctas .btn { text-decoration: none; }
.lp-small { margin: 1rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }

/* hero motion: register -> QR -> paid, with the customer's phone */
.lp-stage { position: relative; margin-right: 6%; }
.dev-tab { padding: 12px; border-radius: 24px; background: #151c33; box-shadow: 0 30px 60px -28px rgba(20, 28, 60, 0.55), 0 2px 0 rgba(255, 255, 255, 0.08) inset; }
.dev-tab .scr { position: relative; aspect-ratio: 1180 / 820; overflow: hidden; border-radius: 13px; background: var(--mist); }
.dev-phone { position: absolute; right: -9%; bottom: -12%; width: 29%; padding: 7px; border-radius: 26px; background: #151c33;
  box-shadow: 0 24px 40px -18px rgba(20, 28, 60, 0.6); animation: phone 10s infinite both; }
.dev-phone .scr { position: relative; aspect-ratio: 390 / 800; overflow: hidden; border-radius: 20px; background: var(--paper); }
.lp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: 10s infinite both; }
.s1 { animation-name: s1 !important; } .s2 { animation-name: s2 !important; } .s3 { animation-name: s3 !important; }
.p1 { animation-name: p1 !important; } .p2 { animation-name: p2 !important; }
@keyframes s1 { 0%, 24% { opacity: 1; } 28%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes s2 { 0%, 24% { opacity: 0; } 28%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes s3 { 0%, 54% { opacity: 0; } 58%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes p1 { 0%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes p2 { 0%, 54% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes phone { 0%, 22% { opacity: 0; transform: translateY(28px) rotate(3deg); } 30%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(12px); } }
.lp-stamp { position: absolute; left: -7%; top: -9%; width: clamp(92px, 12vw, 140px); color: var(--shu); opacity: 0; mix-blend-mode: multiply; animation: stamp 10s infinite both; }
@keyframes stamp {
  0%, 57% { opacity: 0; transform: scale(1.9) rotate(-4deg); }
  61% { opacity: 1; transform: scale(0.94) rotate(-13deg); }
  64%, 92% { opacity: 0.92; transform: scale(1) rotate(-12deg); }
  98%, 100% { opacity: 0; transform: scale(1) rotate(-12deg); }
}

/* costs receipt */
.lp-costs { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 5rem); }
.cost-receipt { position: relative; padding: 1.75rem 1.6rem 2.2rem; background: #fff; box-shadow: 0 16px 30px -22px rgba(20, 28, 60, 0.45); transform: rotate(-1.2deg);
  font-family: var(--font-dot); --tear: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%; }
.cr-store { margin: 0; text-align: center; font-size: var(--t-xl); letter-spacing: 0.2em; }
.cr-title { margin: 0.25rem 0 1.25rem; text-align: center; color: var(--ink-soft); }
.cost-receipt dl { margin: 0; }
.cost-receipt dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.cost-receipt dt, .cost-receipt dd { margin: 0; }
.cost-receipt .cr-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 0.4rem; padding-top: 0.7rem; font-size: var(--t-2xl); }
.cr-note { margin: 1.1rem 0 0; font-family: var(--font-ui); font-size: var(--t-xs); line-height: 1.7; color: var(--ink-soft); }
.lp-points h2 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 2.4vw, 1.65rem); color: var(--ai-deep); }
.lp-points p { margin: 0 0 1.75rem; line-height: 1.85; color: var(--ink-soft); max-width: 38em; }

/* headings and steps */
.lp-h { margin: 0 0 2.25rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--ai-deep); }
.lp-intro { max-width: 46em; margin: -1rem 0 2rem; line-height: 1.9; color: var(--ink-soft); }
.lp-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); margin: 0; padding: 0; }
.lp-steps li { counter-increment: s; }
.lp-steps img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: var(--mist); }
.lp-steps img.tall { object-fit: contain; background: var(--ai-wash); }
.lp-steps h3 { display: flex; align-items: baseline; gap: 0.6rem; margin: 1rem 0 0.4rem; font-size: var(--t-lg); }
.lp-steps h3::before { content: counter(s); display: inline-grid; place-items: center; flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--shu); color: #fff; font-family: var(--font-dot); font-size: 0.85em; }
.lp-steps p { margin: 0; line-height: 1.8; color: var(--ink-soft); }
.lp-video { margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 900px; }
.lp-video video { display: block; width: 100%; height: auto; border-radius: 16px; border: 10px solid #151c33; background: #151c33; box-shadow: 0 24px 50px -30px rgba(20, 28, 60, 0.6); }
.lp-video figcaption { margin-top: 0.75rem; text-align: center; font-size: var(--t-sm); color: var(--ink-soft); }

/* features */
.lp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 0; }
.lp-features div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.lp-features dt { font-weight: 700; font-size: var(--t-lg); color: var(--ai-deep); }
.lp-features dt::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.6em; border-radius: 50%; border: 2px solid var(--shu); vertical-align: 0.1em; }
.lp-features dd { margin: 0.35rem 0 0 1.35em; line-height: 1.75; color: var(--ink-soft); }

/* no-fee flow */
.lp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0.75rem; margin: 0 0 2rem; }
.lp-flow .node { display: grid; align-content: center; gap: 0.35rem; padding: 1.1rem 1.2rem; border: 2px solid var(--ai); border-radius: 14px; background: #fff; }
.lp-flow .node:last-child { border-color: var(--shu); }
.lp-flow b { font-size: var(--t-lg); color: var(--ai-deep); }
.lp-flow small { color: var(--ink-soft); line-height: 1.6; }
.lp-flow .arrow { align-self: center; width: 34px; height: 2px; background: var(--ai); position: relative; }
.lp-flow .arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ai); }
.lp-list { margin: 0; padding-left: 1.2em; max-width: 52em; }
.lp-list li { margin-bottom: 0.9rem; line-height: 1.85; color: var(--ink-soft); }
.lp-list b { color: var(--ink); }

/* start */
.lp-start { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; }
.lp-start li { counter-increment: st; position: relative; padding-top: 2.6rem; }
.lp-start li::before { content: counter(st); position: absolute; top: 0; left: 0; font-family: var(--font-dot); font-size: 1.9rem; line-height: 1; color: var(--shu); }
.lp-start h3 { margin: 0 0 0.4rem; font-size: var(--t-lg); }
.lp-start p { margin: 0; line-height: 1.8; color: var(--ink-soft); }
.lp-customers p { max-width: 46em; line-height: 1.9; color: var(--ink-soft); }
.lp-customers a { color: var(--ai); font-weight: 700; }

/* faq */
.lp-faq { max-width: 52em; }
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; font-size: var(--t-lg); list-style-position: outside; }
.lp-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lp-faq p { margin: 0 0 1.25rem; line-height: 1.85; color: var(--ink-soft); }

.lp-final { padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; text-align: center; background: var(--ai); color: #fff; }
.lp-final h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.lp-final .btn.primary { background: #fff; border-color: #fff; color: var(--ai); text-decoration: none; }
.lp-foot { padding: 2rem 1.25rem 3rem; text-align: center; font-size: var(--t-sm); color: var(--ink-soft); }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.lp-foot a { color: var(--ai); }
.lp-foot p { max-width: 46em; margin: 0 auto; line-height: 1.7; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-stage { margin: 1.5rem 8% 2.5rem 4%; }
  .lp-stamp { left: -4%; top: -7%; }
  .lp-costs { grid-template-columns: 1fr; }
  .cost-receipt { max-width: 360px; }
  .lp-steps, .lp-start { grid-template-columns: 1fr; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-flow .arrow { justify-self: center; width: 2px; height: 26px; }
  .lp-flow .arrow::after { right: -5px; top: auto; bottom: -3px; border: 6px solid transparent; border-top: 9px solid var(--ai); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-stage img, .dev-phone, .lp-stamp { animation: none !important; }
  .s3, .p2 { opacity: 1; }
  .dev-phone { opacity: 1; }
  .lp-stamp { opacity: 0.92; transform: rotate(-12deg); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* smooth page change into the app (browsers that support it) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.lp-stage picture, .lp-steps picture { display: contents; } /* AVIF with a JPEG fallback; layout as if bare <img> */

/* the phone mockup peeks out of the tablet frame on purpose: never let it widen the page */
.lp-hero { overflow-x: clip; }
