/* Envoys Club public landing system: shared by the creator (index.html) and partner (partners-ja.html) pages.
 * Tokens, buttons, hero frame, problem cards, sticky product stage with sample UI, criteria band,
 * closing frame and scroll reveal. Page files add their own header, lists and footer. Hidden reveal
 * states exist only under html.js and prefers-reduced-motion: no-preference (see landing.js). */

/* Headline display face. The Jamsil (Lotte Shopping, free for commercial web use under its own licence;
 * loaded unmodified from the noonnu CDN, not self-converted). Body text stays SUIT. */
@font-face {
  font-family: "Envoys Display KO";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil5Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #191a18;
  --ink-2: #242623;
  --canvas: #faf9f6;
  --paper: #ffffff;
  --muted: #5d605b;
  --line: rgba(25, 26, 24, 0.12);
  --orange: #ff4d00;
  --orange-hover: #ff621f;
  --orange-ink: #b83700;
  --on-photo-accent: #ff9a6b;
  --orange-soft: #ff7a3d;
  --peach: #ffe9dc;
  --sand: #f1ebe0;
  --on-dark: #faf9f6;
  --on-dark-muted: #b9bcb5;
  --dark-line: rgba(250, 249, 246, 0.14);
  --content-max: 1200px;
  --hero-max: 1480px;
  --gutter: 32px;
  --radius-xl: 40px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Envoys Display KO", "Envoys SUIT", -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  --display-weight: 700;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--canvas); }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Envoys SUIT", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ── Scroll progress ─────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: var(--orange); transform-origin: left center; transform: scaleX(0); pointer-events: none; }

/* ── Buttons ─────────────────────────────────────── */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 26px;
  border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), background-color .2s ease, box-shadow .25s ease;
}
.c-btn-arrow { display: inline-grid; place-items: center; width: 20px; height: 20px; transition: transform .25s var(--ease); }
.c-btn-arrow svg { width: 20px; height: 20px; stroke: currentColor; }
.c-btn:hover { transform: translateY(-2px); }
.c-btn:hover .c-btn-arrow { transform: translateX(4px); }
.c-btn-light { background: var(--orange); color: var(--ink); box-shadow: 0 14px 40px -12px rgba(255,77,0,.6); }
.c-btn-light:hover { background: var(--orange-hover); }
.c-btn-dark { background: var(--ink); color: #fff; }
.c-btn-dark:hover { background: #000; }
.c-btn-ghost { height: auto; min-height: 44px; padding: 0 2px; border-radius: 0; background: none; color: #fff; border: 0; border-bottom: 2px solid rgba(255,255,255,.65); }
.c-btn-ghost:hover { border-bottom-color: #fff; }

/* ── Shared type ─────────────────────────────────── */
.c-wrap { width: min(var(--content-max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.c-kicker, .c-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--orange-ink); margin-bottom: 18px; }
.c-eyebrow { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .12em; font-size: 13px; color: #fff; }
.c-eyebrow-line { width: 22px; height: 2px; background: var(--orange); }
.c-head h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.24; font-weight: 800; letter-spacing: -0.035em; }
.c-head h2 em { font-style: normal; color: var(--orange-ink); }
.c-lead { margin-top: 22px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--muted); max-width: 640px; }
.c-head-center { text-align: center; }
.c-head-center .c-lead { margin-left: auto; margin-right: auto; }

/* ── Hero: full-bleed photo, left aligned ───────── */
.c-hero { padding: 0; }
.c-hero-frame {
  position: relative; min-height: min(880px, calc(100svh - 72px)); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left; color: #fff;
  padding: 128px max(var(--gutter), calc((100% - var(--content-max)) / 2)) 0;
  background:
    linear-gradient(180deg, rgba(25,26,24,.55) 0%, rgba(25,26,24,.8) 68%, rgba(25,26,24,.94) 100%),
    linear-gradient(90deg, rgba(25,26,24,.7) 0%, rgba(25,26,24,.35) 100%),
    url("assets/hero/tokyo-night.webp") center / cover no-repeat;
  background-color: var(--ink);
}
.hero-wrap { width: min(1200px, 100%); padding-bottom: 56px; }
.hero-title { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.2; font-weight: 800; letter-spacing: -0.05em; margin: 6px 0 32px; text-wrap: balance; }
.c-accent { font-style: normal; color: var(--on-photo-accent); }
.hero-desc { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.7; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.hero-caption { margin-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.3); }
.hero-steps li { display: flex; align-items: center; gap: 14px; padding: 24px 0 28px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.hero-step-no { padding: 3px 8px; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; }

/* ── Problem: statements that stack as you scroll ── */
.c-pain { position: relative; background: var(--canvas); padding: 128px 0 0; }
.c-pain .c-head h2 { max-width: 13em; }
.c-pain .c-lead + .c-lead { margin-top: 14px; }
.pain-stack { margin-top: 88px; }
.pain-panel {
  position: sticky; top: 72px; min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 72px 0; overflow: hidden;
  border-radius: 40px 40px 0 0; box-shadow: 0 -28px 60px -34px rgba(25,26,24,.45);
}
.pain-a { background: var(--peach); color: var(--ink); }
.pain-b { background: var(--ink); color: #fff; }
.pain-c { background: var(--orange); color: var(--ink); }
.pain-panel-inner { position: relative; width: min(var(--content-max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.pain-tag { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; }
.pain-tag b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }
.pain-b .pain-tag b { background: #fff; color: var(--ink); }
.pain-hook { margin-top: 36px; max-width: min(11em, calc(100% - clamp(200px, 27vw, 380px))); font-size: clamp(36px, 6.6vw, 96px); line-height: 1.2; font-weight: 800; letter-spacing: -0.05em; text-wrap: balance; }
.pain-art { position: absolute; right: 0; bottom: -10px; width: clamp(180px, 24vw, 340px); height: auto; }
.pain-c .pain-art [fill="#ff4d00"] { fill: var(--ink); }
.pain-c .pain-art [stroke="#ff4d00"] { stroke: var(--ink); }

/* ── Solve: sticky product stage ─────────────────── */
.c-solve { position: relative; z-index: 1; overflow-x: clip; padding: 132px 0 120px; background: var(--ink); color: var(--on-dark); }
.c-solve .c-kicker { color: var(--orange-soft); }
.c-solve .c-head h2 em { color: var(--orange-soft); }
.c-solve .c-lead { color: var(--on-dark-muted); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.stage-steps { margin-top: 56px; display: grid; gap: 56px; counter-reset: step; }
.stage-step { position: relative; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.stage-num { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--orange-soft); margin-bottom: 16px; }
.stage-num b { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 12.5px; }
.stage-pain { font-size: clamp(25px, 3vw, 36px); line-height: 1.28; font-weight: 800; letter-spacing: -0.035em; }
.stage-resp { margin-top: 18px; font-size: 18px; line-height: 1.75; color: var(--on-dark-muted); max-width: 30em; }
.stage-inline { margin-top: 28px; max-width: 360px; }
.stage-inline figcaption { margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }
.stage-device-wrap { display: none; }
.stage-access { margin-top: 56px; font-size: 14px; color: var(--on-dark-muted); max-width: 640px; }

.stage.is-live { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(48px, 8vw, 120px); align-items: start; }
.stage.is-live .stage-steps { margin-top: 24px; gap: 0; }
.stage.is-live .stage-step { min-height: 54vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding: 40px 0; opacity: .3; transition: opacity .45s ease; }
.stage.is-live .stage-step.is-active { opacity: 1; }
.stage.is-live .stage-inline { display: none; }

.stage.is-live .stage-device-wrap { display: block; position: sticky; top: max(96px, calc(50vh - 300px)); }
.stage-device { position: relative; width: 360px; height: 600px; margin: 0 auto; isolation: isolate; }
.stage-device::before { content: ""; position: absolute; inset: -16% -26%; z-index: -1; background: radial-gradient(closest-side, var(--stage-glow, rgba(255,77,0,.36)), transparent 72%); }
.stage-device-notch { display: none; }
.stage-device-screen { position: relative; width: 100%; height: 100%; }
.stage-device-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--on-dark-muted); }
@media (max-height: 760px) { .stage-device { height: 520px; } }

/* UI sample screens: static illustrations, never actionable. */
.ui { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; color: var(--ink); border-radius: 28px; font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; }
.stage-inline .ui { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.ui-bar { display: flex; align-items: center; justify-content: space-between; }
.ui-bar strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.ui-tag { padding: 4px 9px; border-radius: 999px; background: var(--peach); color: var(--orange-ink); font-size: 12px; font-weight: 800; }
.ui-photo { position: relative; height: 150px; border-radius: 18px; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)), url("assets/hero/dining-counter.webp") center / cover no-repeat; display: flex; align-items: flex-end; gap: 6px; padding: 10px; }
.ui-pill { padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; }
.ui-list { display: grid; }
.ui-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ui-list dt { color: var(--muted); font-size: 12.5px; }
.ui-list dd { font-weight: 700; font-size: 13px; text-align: right; }
.ui-btn { display: block; text-align: center; padding: 14px 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.ui-note { font-size: 13px; color: var(--muted); }
.ui-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.ui-week i { display: block; height: 52px; border-radius: 12px; background: #f2efe9; }
.ui-week i.is-on { background: var(--orange); }
.ui-flow, .ui-check { display: grid; gap: 8px; }
.ui-flow li, .ui-check li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f6f4ef; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.ui-flow li::before, .ui-check li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c6bd; background: #fff; }
.ui-flow li.is-done, .ui-check li.is-done { color: var(--ink); }
.ui-flow li.is-done::before, .ui-check li.is-done::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ui-flow li.is-now, .ui-check li.is-now { background: var(--peach); color: var(--ink); }
.ui-flow li.is-now::before, .ui-check li.is-now::before { border-color: var(--orange); }
.ui-callout { padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.ui-float { position: absolute; bottom: -16px; left: 12px; z-index: 2; padding: 9px 14px; border-radius: 12px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: -0.02em; box-shadow: 0 14px 30px -10px rgba(255,77,0,.6); }
.ui-field { padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); color: #8c8f89; font-size: 13px; }

.stage-device-screen .stage-screen {
  position: absolute; left: 0; right: 0; top: 50%; padding: 20px; opacity: 0; visibility: hidden; --tilt: -1.6deg;
  transform: translateY(calc(-50% + 22px)) rotate(var(--tilt));
  box-shadow: 0 44px 90px -34px rgba(0,0,0,.65), 0 0 0 1px rgba(25,26,24,.06);
  transition: opacity .4s ease, transform .6s var(--ease), visibility 0s linear .4s;
}
.stage-device-screen .stage-screen:nth-child(2) { --tilt: 1.4deg; }
.stage-device-screen .stage-screen.is-on { opacity: 1; visibility: visible; transform: translateY(-50%) rotate(var(--tilt)); transition-delay: 0s; }
.stage-device-screen .stage-screen .ui-float { left: -22px; }
.stage-inline .ui { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: no-preference) {
  .stage-screen.is-on > * { animation: ui-in .55s var(--ease) both; }
  .stage-screen.is-on > *:nth-child(2) { animation-delay: .06s; }
  .stage-screen.is-on > *:nth-child(3) { animation-delay: .12s; }
  .stage-screen.is-on > *:nth-child(4) { animation-delay: .18s; }
  .stage-screen.is-on > *:nth-child(5) { animation-delay: .24s; }
  @keyframes ui-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .stage-device-screen .stage-screen, .stage.is-live .stage-step { transition: none; }
}

/* ── Criteria ────────────────────────────────────── */
.c-criteria { padding: 112px 0; background: var(--peach); }
.criteria-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.criteria-list { display: grid; }
.criteria-list li { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(25,26,24,.16); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; font-weight: 800; letter-spacing: -0.035em; }
.criteria-list li:first-child { border-top: 1px solid rgba(25,26,24,.16); }
.criteria-list i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; }
.criteria-list svg { width: 22px; height: 22px; stroke: currentColor; }

/* ── Closing: full-bleed orange ─────────────────── */
.c-closing { padding: 0; background: var(--orange); color: var(--ink); }
.c-closing-frame { position: relative; min-height: 560px; display: flex; align-items: center; padding: 120px max(var(--gutter), calc((100% - var(--content-max)) / 2)); background: var(--orange); text-align: left; }
.cta-band { width: 100%; }
.c-closing .c-eyebrow { color: var(--ink); }
.c-closing .c-eyebrow-line { background: var(--ink); }
.cta-title { max-width: 11em; margin: 0; font-size: clamp(40px, 7.4vw, 112px); line-height: 1.2; font-weight: 800; letter-spacing: -0.05em; text-wrap: balance; }
.cta-sub { margin-top: 28px; max-width: 560px; font-size: 19px; line-height: 1.7; color: var(--ink); }
.cta-actions { margin-top: 40px; display: flex; }
.cta-foot { margin-top: 24px; font-size: 14px; color: var(--ink); }
.cta-foot a { color: var(--ink); font-weight: 800; text-decoration: underline; }

/* ── Reveal: only when motion is welcome and JS is running ── */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .85s var(--ease) var(--reveal-delay, 0ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-wrap > * { animation: hero-in .8s var(--ease) both; }
  .hero-wrap > *:nth-child(2) { animation-delay: .08s; }
  .hero-wrap > *:nth-child(3) { animation-delay: .16s; }
  .hero-wrap > *:nth-child(4) { animation-delay: .24s; }
  .hero-wrap > *:nth-child(5) { animation-delay: .32s; }
  .hero-steps li { animation: hero-in .8s var(--ease) both; }
  .hero-steps li:nth-child(1) { animation-delay: .5s; }
  .hero-steps li:nth-child(2) { animation-delay: .6s; }
  .hero-steps li:nth-child(3) { animation-delay: .7s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .c-btn, .c-btn-arrow, .pain-art { transition: none; } }

/* ── Shared responsive ───────────────────────────── */
@media (max-width: 959px) {
  .criteria-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .c-pain, .c-criteria { padding-top: 88px; }
  .c-criteria { padding-bottom: 96px; }
  .c-solve { padding: 96px 0; }
  .pain-stack { margin-top: 56px; }
  .pain-panel { position: static; min-height: 0; padding: 56px 0 56px; border-radius: 28px 28px 0 0; margin-top: -28px; }
  .pain-panel:first-child { margin-top: 0; }
  .pain-hook { max-width: 11em; }
  /* Stacked under the headline instead of floating over it (homepage exception 2026-10-12, item 1). */
  .pain-art { position: static; display: block; width: 170px; margin: 24px 0 0 auto; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .c-hero-frame { min-height: 0; padding-top: 104px; }
  .hero-wrap { padding-bottom: 36px; }
  .hero-steps { grid-template-columns: minmax(0, 1fr); }
  .hero-steps li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; }
  .hero-steps li:first-child { border-top: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .c-btn-light, .c-btn-dark { width: 100%; justify-content: space-between; }
  .c-btn-ghost { align-self: flex-start; }
  .c-closing-frame { min-height: 0; padding: 80px var(--gutter); }
  .cta-foot a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
}
@media (max-width: 420px) {
  .c-head h2 { font-size: 32px; }
  .pain-hook { font-size: 34px; }
}

/* CJK and English wrapping: keep-all is for Korean only. */
html:lang(ja) body, html:lang(zh-TW) body, html:lang(zh-CN) body,
html:lang(ja) body *, html:lang(zh-TW) body *, html:lang(zh-CN) body * { word-break: normal !important; overflow-wrap: anywhere; }
html:lang(en) body * { overflow-wrap: break-word; }

/* ── Display face on headlines ───────────────────── */
.hero-title, .c-head h2, .pain-hook, .stage-pain, .cta-title, .criteria-list li, .timeline-item h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.03em;
}
