/* My Crew landing pages (/mycrew/, /en/, /ko/). Built by scripts/build-mycrew-lp.py.
   Motion is added by mycrew/app.js and switched off for prefers-reduced-motion. */
html[lang="ja"] body { line-height: 1.8; }
html[lang="en"] body { line-height: 1.6; }
html[lang="ko"] body { line-height: 1.75; }
html[lang^="zh"] body { line-height: 1.8; }
body { overflow-x: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #FFFFFF; padding: 10px 14px; border-radius: 10px; z-index: 30; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }

/* ---------- header ---------- */
.lp-head { position: sticky; top: 0; z-index: 20; background: rgba(239, 234, 255, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow 0.25s ease, background 0.25s ease; }
.lp-head.scrolled { background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 24px rgba(27, 19, 64, 0.08); }
.lp-head-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.lp-logo { font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); margin-right: auto; }
.lp-nav { display: flex; gap: 4px; }
.lp-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 999px; transition: background 0.2s ease; }
.lp-nav a:hover { background: rgba(74, 47, 224, 0.08); color: var(--ink); }
.lp-head-right { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.lp-login { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 12px; }
@media (max-width: 860px) { .lp-nav { display: none; } }
.lp-foot .lp-langs { display: inline-flex; margin-left: 8px; }

.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-weight: 800; font-size: 17px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; box-shadow: 0 10px 24px rgba(74, 47, 224, 0.28); }
.lp-btn:hover { color: #FFFFFF; background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74, 47, 224, 0.34); }
.lp-btn.ghost { background: #FFFFFF; color: var(--ink); box-shadow: none; }
.lp-btn.ghost:hover { color: var(--ink); background: #FFFFFF; box-shadow: 0 10px 24px rgba(27, 19, 64, 0.1); }
.lp-btn.small { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(40% 40% at 20% 30%, rgba(74, 47, 224, 0.16), transparent 70%), radial-gradient(35% 35% at 80% 20%, rgba(191, 240, 212, 0.55), transparent 70%), radial-gradient(30% 30% at 60% 80%, rgba(255, 196, 214, 0.45), transparent 70%);
  animation: glow 18s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 700; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #1FB36B; box-shadow: 0 0 0 0 rgba(31, 179, 107, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 179, 107, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(31, 179, 107, 0); } }
.hero-title { margin: 0; font-size: clamp(34px, 5.6vw, 66px); line-height: 1.2; font-weight: 800; max-width: 16em; }
html[lang="en"] .hero-title { letter-spacing: -0.03em; line-height: 1.06; }
.hero-lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-crews { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-crew { flex: 1 1 170px; max-width: 210px; background: #FFFFFF; border-radius: 28px; padding: 14px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 12px 30px rgba(27, 19, 64, 0.08); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
.hero-crew img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 20px; display: block; }
.hero-crew strong { font-size: 16px; }
.hero-crew .bubble { font-size: 13px; line-height: 1.5; background: var(--tint); border-radius: 14px 14px 14px 4px; padding: 8px 12px; color: var(--muted); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ticker { margin-top: 56px; background: var(--ink); color: #FFFFFF; overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { white-space: nowrap; font-weight: 700; font-size: 16px; padding: 0 28px; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #BFF0D4; transform: translateY(-50%); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.band { padding: 96px 0; }
.band.white { background: #FFFFFF; }
.band .wrap { display: flex; flex-direction: column; gap: 20px; }
.sec-title { margin: 0; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.35; font-weight: 800; }
html[lang="en"] .sec-title { letter-spacing: -0.02em; line-height: 1.15; }
.sec-lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 40em; }
.sec-note { margin: 0; font-size: 13px; color: var(--soft); }
.band .crew-grid, .band .compare, .band .rates, .band .steps, .band .dash, .band .sim { margin-top: 16px; }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.compare-card { background: var(--tint); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.compare-card .label { font-size: 15px; font-weight: 800; color: var(--soft); }
.compare-card p { margin: 0; font-size: 24px; line-height: 1.6; font-weight: 800; }
.compare-card.is-mycrew { background: var(--accent); color: #FFFFFF; }
.compare-card.is-mycrew .label { color: #D9D0FF; }

/* shelf: 3 x 2 */
#lpSamples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { #lpSamples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #lpSamples { grid-template-columns: minmax(0, 1fr); } }
#lpSamples .crew-item { box-shadow: 0 10px 28px rgba(27, 19, 64, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
#lpSamples .crew-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27, 19, 64, 0.12); }
#lpSamples .crew-pic { transition: transform 0.4s ease; }
#lpSamples .crew-item:hover .crew-pic { transform: scale(1.03) rotate(-1deg); }

/* earnings */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.rate-card { background: var(--tint); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.rate-card .label { font-size: 15px; font-weight: 800; color: var(--soft); }
.rate-card .big { font-size: 76px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.rate-card strong { font-size: 18px; }
.rate-card p { margin: 0; font-size: 15px; color: var(--muted); }
.rate-card.is-dark { background: var(--ink); color: #FFFFFF; }
.rate-card.is-dark .label { color: #D9D0FF; }
.rate-card.is-dark .big { color: #BFF0D4; }
.rate-card.is-dark p { color: #E4DFFA; }

.sim { background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.sim h3 { margin: 0; font-size: 22px; font-weight: 800; }
.sim .sec-note { color: #C9C2EE; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: center; }
.sim-inputs { display: flex; flex-direction: column; gap: 26px; }
.sim-field { display: flex; flex-direction: column; gap: 12px; }
.sim-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 700; color: #E4DFFA; }
.sim-label output { font-size: 22px; font-weight: 800; color: #FFFFFF; }
.sim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(to right, #BFF0D4 var(--fill, 50%), rgba(255, 255, 255, 0.18) var(--fill, 50%)); outline-offset: 6px; }
.sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; border: 4px solid #BFF0D4; cursor: pointer; }
.sim input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 4px solid #BFF0D4; cursor: pointer; }
.sim-result { background: rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.sim-result .k { font-size: 15px; color: #E4DFFA; font-weight: 600; }
.sim-result .v { font-size: clamp(38px, 5vw, 56px); line-height: 1.1; font-weight: 800; color: #BFF0D4; letter-spacing: -0.02em; }
.sim-result .k output { color: #FFFFFF; font-weight: 800; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--tint); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.step h3 { margin: 0; font-size: 20px; font-weight: 800; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }


/* apply */
.apply { background: var(--ink); color: #FFFFFF; border-radius: 36px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.apply::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 47, 224, 0.6), transparent 70%); pointer-events: none; }
.apply-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.apply-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.3; font-weight: 800; }
.apply-copy p { margin: 0; font-size: 17px; color: #E4DFFA; }
.apply .lp-signup { flex: 1 1 380px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: 28px; padding: 28px; position: relative; }
.apply .lp-signup .crew-btn { align-self: flex-start; }
@media (max-width: 600px) { .apply { padding: 36px 22px; } .compare-card, .rate-card, .sim { padding: 26px; } }

.lp-foot { padding: 32px 0 40px; font-size: 13px; color: var(--soft); }
.lp-foot a { color: var(--soft); }

/* dashboard bars grow in when the panel scrolls into view */
.js .dash.reveal .dash-bar .fill { transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--b, 0) * 0.08s + 0.2s); }
.js .dash.reveal.in .dash-bar .fill, .reveal-all .dash.reveal .dash-bar .fill { transform: scaleY(1); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 0.1s); }
.js .reveal.in, .reveal-all .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-crew, .eyebrow .dot, .ticker-track { animation: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .js .reveal, .js .dash.reveal .dash-bar .fill { opacity: 1; transform: none; transition: none; }
  #lpSamples .crew-item, #lpSamples .crew-pic, .lp-btn { transition: none; }
}


/* language menu in the header */
.lp-lang { position: relative; }
.lp-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lp-lang summary::-webkit-details-marker { display: none; }
.lp-lang summary:hover, .lp-lang[open] summary { background: rgba(74, 47, 224, 0.08); }
.lp-lang .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.lp-lang[open] .caret { transform: translateY(1px) rotate(-135deg); }
.lp-lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #FFFFFF; border-radius: 16px; box-shadow: 0 14px 40px rgba(27, 19, 64, 0.16); min-width: 160px; z-index: 30; }
.lp-lang li a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.lp-lang li a:hover { background: var(--tint); color: var(--ink); }
.lp-lang li a[aria-current="true"] { color: var(--accent); }
.lp-lang li a[aria-current="true"]::after { content: "\2713"; float: right; margin-left: 12px; }

/* line breaks: Japanese only breaks at the <wbr> phrase points the build inserts;
   cards drawn by app.js use the browser's phrase breaking where it exists. Headings are balanced. */
html[lang="ja"] main, html[lang="ja"] .lp-foot { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] #lpSamples, html[lang="ja"] #lpDash, html[lang="ja"] .lp-signup, html[lang^="zh"] #lpSamples, html[lang^="zh"] #lpDash, html[lang^="zh"] .lp-signup { word-break: auto-phrase; }
.hero-title, .sec-title, .apply-copy h2, .compare-card p, .step h3, .hero-crew .bubble { text-wrap: balance; }
.hero-lead, .sec-lead, .sec-note, .rate-card p, .step p, .apply-copy p { text-wrap: pretty; }

/* phones: placed last so it wins over the base rules above */
@media (max-width: 600px) {
  .lp-head-in { flex-wrap: nowrap; padding: 10px 16px; gap: 8px; }
  .lp-lang .name { display: none; }
  .lp-lang summary { padding: 10px 8px; }
  .lp-logo { font-size: 19px; }
  .lp-login { padding: 10px 6px; font-size: 14px; white-space: nowrap; }
  .lp-btn.small { padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .hero { padding-top: 36px; }
  .hero-crew { flex-basis: 140px; max-width: calc(50% - 8px); padding: 10px 10px 14px; border-radius: 22px; }
  .hero-crew .bubble { font-size: 12px; }
  .band { padding: 72px 0; }
  .hero-title br, .sec-title br, .apply-copy h2 br { display: none; }
}
