@import url("tokens.css");

/* Hallmark · macrostructure: Marquee Hero · tone: austere · anchor hue: lime
 * theme: studied-DNA (source: https://www.eventbeds.com/)
 * nav: N5 Floating pill · footer: Ft5 Statement
 */

html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 400;
}
:root:lang(ja) {
  --font-display: "Hiragino Sans", "Yu Gothic", ui-sans-serif, sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", ui-sans-serif, sans-serif;
}
:root:lang(zh-Hans) {
  --font-display: "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
}
:root:lang(zh-Hant) {
  --font-display: "PingFang TC", "Microsoft JhengHei", ui-sans-serif, sans-serif;
  --font-body: "PingFang TC", "Microsoft JhengHei", ui-sans-serif, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: var(--space-md);
  top: var(--space-sm);
  z-index: var(--z-modal);
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-xs) var(--space-sm);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

[data-lang="en"] .t-ko,
[data-lang="ko"] .t-en { display: none; }

.mast {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 8px 8px 8px 16px;
  background: var(--color-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.mast-actions { display: flex; align-items: center; gap: 8px; }
.cta,
.menu-btn {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cta {
  background: var(--color-ink);
  color: var(--color-paper);
}
.cta[aria-disabled="true"] { cursor: default; }
.menu-btn { background: var(--color-paper-2); color: var(--color-ink); gap: 0.35em; }
.menu-btn:hover, .cta:hover { filter: brightness(0.96); }
.menu-btn[aria-expanded="true"] { background: var(--color-ink); color: var(--color-paper); }

.menu {
  position: fixed;
  top: 84px;
  right: var(--space-md);
  z-index: var(--z-sticky);
  width: min(300px, calc(100% - 2 * var(--space-md)));
  background: var(--color-paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.menu.is-open { display: flex; }
.menu a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-ink);
}
.menu a:hover { background: var(--color-paper-2); }
.language-picker {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 12px 2px;
  border-top: var(--rule);
}
.language-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 700;
}
.language-heading > [aria-hidden="true"] {
  color: var(--color-cobalt);
  font-size: 1rem;
  line-height: 1;
}
.select-wrap { position: relative; display: block; }
.language-picker select {
  width: 100%;
  min-height: 46px;
  appearance: none;
  border: 1px solid var(--color-rule);
  border-radius: 14px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  padding: 10px 40px 10px 12px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
}
.language-picker select:hover { border-color: var(--color-muted); }
.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  translate: 0 -58%;
  color: var(--color-ink-2);
  font-size: 1rem;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 108px var(--space-lg) var(--space-lg);
  overflow: hidden;
  background: var(--color-night);
  color: var(--color-night-ink);
}
.story {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.beat {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-long) var(--ease-in-out);
}
.beat.is-on { opacity: 1; }
.beat > img,
.beat .photo,
.beat .sticker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.beat.is-on > img {
  animation: ken 4.4s var(--ease-in-out) both;
}
.story-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--color-night) 22%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, color-mix(in oklch, var(--color-night) 72%, transparent) 0%, color-mix(in oklch, var(--color-night) 18%, transparent) 36%, transparent 58%);
}
.hero-caption {
  position: relative;
  z-index: 4;
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-lg);
}
.hero-copy { max-width: 22em; min-width: 0; }
.hero-copy .kicker {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw + 0.8rem, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}
[data-lang="ko"] .hero h1 { letter-spacing: -0.06em; }
.story-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-steps button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-night-muted);
  padding: 8px 12px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px solid color-mix(in oklch, var(--color-night-ink) 18%, transparent);
}
.story-steps .is-on button {
  color: var(--color-night-ink);
  border-bottom-color: var(--color-accent);
}
@keyframes ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.night {
  background: var(--color-night);
  color: var(--color-night-ink);
  padding: var(--space-4xl) 0 var(--space-3xl);
}
.night .eyebrow {
  text-align: center;
  margin: 0;
  color: var(--color-night-muted);
  font-size: var(--text-md);
}
.night h2 {
  text-align: center;
  margin: 4px 0 var(--space-2xl);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: var(--text-display-s);
  letter-spacing: -0.04em;
  line-height: 1;
}
.phones {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: end;
}
.phones figure { margin: 0; text-align: center; }
.phones .device {
  width: min(260px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 50px oklch(0% 0 0 / 0.45);
}
.phones iframe,
.phones img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border: 0;
  display: block;
  background: #F8F5FF;
}
.phones h3 {
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-style: normal;
}
.phones p {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--color-night-muted);
  font-size: var(--text-sm);
}

.strip {
  padding: var(--space-3xl) 0;
  background: var(--color-paper);
}
.strip-head {
  width: var(--page);
  margin: 0 auto var(--space-xl);
}
.strip-head h2 {
  margin: 0;
  font-size: var(--text-display-s);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-style: normal;
}
.strip-head p {
  margin: var(--space-md) 0 0;
  max-width: var(--measure);
  color: var(--color-ink-2);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  width: var(--page);
  margin: 0 auto;
}
.cols img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.facts {
  width: var(--page);
  margin: 0 auto;
  padding: var(--space-3xl) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-2xl);
}
.facts h2 {
  margin: 0 0 var(--space-md);
  font-size: var(--text-display-s);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-style: normal;
}
.facts p { color: var(--color-ink-2); max-width: var(--measure); }
.facts dl { margin: 0; display: grid; gap: var(--space-lg); }
.facts dt { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); font-weight: 650; }
.facts dd { margin: 6px 0 0; font-weight: 600; }

.closer {
  background: var(--color-night);
  color: var(--color-night-ink);
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}
.closer h2 {
  margin: 0 0 var(--space-md);
  font-size: var(--text-display-s);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-style: normal;
}
.closer p { color: var(--color-night-muted); margin: 0 auto var(--space-xl); max-width: 42ch; }
.closer .cta { display: inline-flex; background: var(--color-accent); color: var(--color-accent-ink); }

.colophon {
  background: var(--color-night);
  color: var(--color-night-muted);
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-sm);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
}
.colophon .brand { color: var(--color-night-ink); }
.colophon nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.colophon a { color: var(--color-night-muted); text-decoration: none; }
.colophon a:hover { color: var(--color-night-ink); }

.legal-main {
  width: min(720px, calc(100% - 2 * var(--space-lg)));
  margin: 0 auto;
  padding: 120px 0 var(--space-4xl);
}
.legal-main h1 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-md);
}
.legal-main h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-lg);
  margin: var(--space-xl) 0 var(--space-sm);
}
.legal-main .meta { color: var(--color-muted); font-size: var(--text-sm); }
.legal-main p { margin: 0 0 var(--space-md); }
.legal-main ul, .legal-main ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.2em;
}
.legal-main li { margin: 0.2em 0; }
.legal-main table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: 0 0 var(--space-md); }
.legal-main th, .legal-main td {
  border-bottom: var(--rule);
  text-align: left;
  padding: var(--space-xs) var(--space-2xs);
  vertical-align: top;
}
.legal-main a { color: var(--color-cobalt); }
.legal-main .legal-note { color: var(--color-muted); font-size: var(--text-sm); }
.legal-main code {
  font-size: 0.9em;
  word-break: break-all;
}

@media (max-width: 860px) {
  .legal-main table { display: block; overflow-x: auto; }
  .hero { min-height: 92svh; padding: 96px var(--space-md) var(--space-md); }
  .hero-caption { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-copy { max-width: none; }
  .story-steps { justify-content: flex-start; }
  .phones, .cols, .facts { grid-template-columns: 1fr; }
  .phones { gap: var(--space-2xl); }
  .phones .device { width: min(240px, 70%); }
  .b4, .b6 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beat { transition: none; }
  .beat.is-on > img { animation: none; }
}
