/* YOIN — promo site. Same tokens as the app. */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #1a1a24;
  --border-subtle: #2a2a38;
  --border: #3a3a4e;
  --text: #e8e0f0;
  --muted: #9a96aa;
  --moonlight: #a8c5da;
  --candle: #e8c4a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--candle) 78%, white);
  outline-offset: 4px;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--moonlight);
  font-size: 15px;
  letter-spacing: 0.25em;
  text-decoration: none;
}

.brand img { width: 26px; height: 26px; border-radius: 7px; }

nav .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

nav .links a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.3s;
}

nav .links a:hover { color: var(--candle); }

nav .links a:focus-visible,
footer a:focus-visible,
a.badge:focus-visible,
.sticky-cta:focus-visible {
  color: var(--candle);
}

@media (max-width: 640px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  nav .links { justify-content: flex-start; }
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 88vh;
  padding: 24px 24px 48px;
  text-align: center;
}

.hero-drop { width: 230px; height: 170px; overflow: visible; }

.hd-drop {
  animation: hdFall 4.4s infinite;
}

@keyframes hdFall {
  0% { transform: translateY(-92px); opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.85, 0.4); }
  7% { opacity: 1; }
  28% { transform: translateY(0); opacity: 1; }
  31% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(-92px); opacity: 0; }
}

.hd-rip, .hd-rip2, .hd-impact {
  transform-box: fill-box;
  transform-origin: center;
}

.hd-rip { animation: hdRip 4.4s infinite; opacity: 0; }
.hd-rip2 { animation: hdRip2 4.4s infinite; opacity: 0; }
.hd-impact { animation: hdImpact 4.4s infinite; opacity: 0; }

@keyframes hdRip {
  0%, 27% { transform: scale(0.15); opacity: 0; }
  33% { opacity: 0.65; }
  78% { transform: scale(1); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes hdRip2 {
  0%, 36% { transform: scale(0.15); opacity: 0; }
  42% { opacity: 0.4; }
  92% { transform: scale(1); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes hdImpact {
  0%, 27% { transform: scale(0.4); opacity: 0; }
  34% { transform: scale(1); opacity: 1; }
  72% { opacity: 0.9; }
  92% { opacity: 0; }
  100% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.12em;
  animation: surface 2.4s ease-out both;
}

.hero .tagline {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 15px);
  letter-spacing: 0.18em;
  animation: surface 2.4s 0.7s ease-out both;
}

.hero-description {
  max-width: 560px;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 2;
  animation: surface 2s 1s ease-out both;
}

.hero .badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  animation: surface 2s 1.5s ease-out both;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge em {
  color: var(--candle);
  font-style: normal;
  margin-right: 8px;
}

.release-note {
  margin-top: 40px;
  color: var(--candle);
  font-size: 13px;
  letter-spacing: 0.12em;
  animation: surface 2s 1.3s ease-out both;
}

.release-note + .badges {
  margin-top: 16px;
}

a.badge {
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.badge-live {
  border-color: var(--candle);
  background: rgb(232 196 160 / 8%);
  color: var(--text);
  box-shadow: 0 0 22px rgb(232 196 160 / 10%);
}

.badge-live:hover {
  background: rgb(232 196 160 / 16%);
  transform: translateY(-1px);
}

.badge-note {
  border-color: var(--border-subtle);
  color: var(--muted);
}

.scroll-hint {
  margin-top: 56px;
  color: var(--border);
  font-size: 11px;
  letter-spacing: 0.3em;
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes surface {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── Sections ── */
section {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-label {
  color: var(--candle);
  font-size: 12px;
  letter-spacing: 0.35em;
  margin-bottom: 14px;
}

section h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.9;
  margin-bottom: 22px;
}

section p.lead {
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 24px;
}

.card .glyph { font-size: 26px; }

.card h3 {
  color: var(--moonlight);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin: 16px 0 10px;
}

.card p { color: var(--muted); font-size: 13px; }

/* ── Use cases ── */
.use-cases {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.use-case-list {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
}

.use-case-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
}

.use-case-list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--candle) 70%, transparent);
  box-shadow: 0 0 14px rgb(232 196 160 / 30%);
}

/* ── Phones / sample screens ── */
.phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 56px;
  justify-items: center;
}

.phone-wrap { text-align: center; width: 100%; max-width: 280px; }

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: var(--bg);
  border: 5px solid #23232f;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.phone-caption em { color: var(--candle); font-style: normal; }

/* map mock */
.mock-map { position: absolute; inset: 0; background: #0d0d13; }

.mock-map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }

.mock-banner {
  position: absolute;
  top: 40px;
  left: 12px;
  right: 12px;
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.mock-banner strong {
  display: block;
  color: var(--candle);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mock-banner span { color: var(--muted); font-size: 9.5px; }

.mock-title {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--moonlight);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  animation: bob 3.2s ease-in-out infinite alternate;
}

.marker.surface {
  width: 44px;
  height: 44px;
  font-size: 19px;
  border: 2px solid var(--candle);
  box-shadow: 0 0 18px rgba(232, 196, 160, 0.35);
}

.me-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--moonlight);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(168, 197, 218, 0.5);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes pulse { from { transform: scale(0.9); } to { transform: scale(1.1); } }

.mock-fab {
  position: absolute;
  right: 12px;
  bottom: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--candle);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 9px 14px;
}

/* letter demo */
.letter-demo { position: absolute; inset: 0; cursor: pointer; }

.seal-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.envelope {
  position: relative;
  width: 150px;
  height: 102px;
  background: var(--surface);
  border: 1px solid rgba(232, 196, 160, 0.55);
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(232, 196, 160, 0.16);
  animation: bob 2.8s ease-in-out infinite alternate;
}

.envelope svg.flap { position: absolute; inset: 0; width: 100%; height: 100%; }

.wax {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 30%, #f0d4b4, var(--candle) 60%, #b98f66);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(232, 196, 160, 0.5);
  font-size: 18px;
}

.seal-hint {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.25em;
  animation: breathe 2.2s ease-in-out infinite;
}

.letter-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  opacity: 0;
  transform: translateY(16px) scaleY(0.8);
  transform-origin: center top;
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
  pointer-events: none;
}

.letter-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: left;
}

.letter-meta { display: flex; align-items: center; gap: 8px; }

.letter-meta .year { color: var(--candle); font-size: 11px; letter-spacing: 0.08em; }

.letter-meta .cat {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  padding: 2px 8px;
}

.letter-card hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 12px 0;
}

.letter-text { color: var(--text); font-size: 14.5px; line-height: 2.1; letter-spacing: 0.04em; }

.letter-place { margin-top: 12px; color: var(--muted); font-size: 10px; }

.pick-btn {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--candle);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 11px 0;
  text-align: center;
}

.letter-demo.opened .seal-stage {
  opacity: 0;
  transform: scale(1.15);
  filter: blur(5px);
  pointer-events: none;
}

.letter-demo.opened .letter-stage { opacity: 1; transform: none; }

.burst { position: absolute; top: 50%; left: 50%; pointer-events: none; }

.burst span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--candle);
  opacity: 0;
}

.burst span:nth-child(2n) { background: var(--moonlight); }

.letter-demo.opened .burst span { animation: burst 1s ease-out forwards; }

@keyframes burst {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* collection mock */
.mock-col { position: absolute; inset: 0; padding: 18px 12px; text-align: left; }

.mock-col h4 {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 6px 0 14px;
}

.mock-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.mock-tabs span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  padding-bottom: 8px;
}

.mock-tabs .active { color: var(--candle); border-bottom: 2px solid var(--candle); }

.col-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.col-top { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }

.col-top .y { margin-left: auto; color: var(--candle); }

.col-text { margin-top: 7px; color: var(--text); font-size: 11.5px; line-height: 1.8; }

.col-place { margin-top: 6px; color: var(--border); font-size: 9px; }

/* ── Letter section flow ── */
.letter-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.letter-flow .step {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  padding: 14px 20px;
}

.letter-flow .arrow { color: var(--border); }

.shibuya {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.shibuya h2 { margin-bottom: 14px; }

.shibuya p { color: var(--muted); font-size: 14px; }

.final-cta {
  max-width: 760px;
  margin-top: 48px;
  text-align: center;
}

.final-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta .badge {
  padding-inline: 28px;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--candle);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 18px 42px rgb(0 0 0 / 45%), 0 0 26px rgb(232 196 160 / 14%);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ── Footer ── */
footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

footer a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

footer a:hover { color: var(--candle); }

footer .copy { color: var(--border); font-size: 11px; letter-spacing: 0.1em; }

/* ── Legal document pages ── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.doc h1 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin: 32px 0 8px;
}

.doc .established { color: var(--border); font-size: 12px; margin-bottom: 40px; }

.doc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 40px 0 12px;
}

.doc h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--candle) 70%, transparent);
}

.doc p, .doc li { color: var(--muted); font-size: 13.5px; }

.doc ul { padding-left: 1.4em; }

.doc a { color: var(--moonlight); }

.application-form {
  display: grid;
  gap: 18px;
  margin: 28px 0 12px;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.application-form label,
.application-form fieldset {
  display: grid;
  gap: 8px;
}

.application-form fieldset {
  padding: 0;
  border: 0;
}

.application-form legend,
.application-form label span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form select,
.application-form textarea {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 12px 13px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.application-form textarea { resize: vertical; }

.application-form select {
  appearance: none;
}

.application-form input[type="radio"],
.application-form input[type="checkbox"] {
  accent-color: var(--candle);
}

.application-form .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.application-form button {
  justify-self: start;
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  background: var(--candle);
  color: var(--bg);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.application-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  min-height: 1.8em;
  margin: 0;
}

.form-status[data-kind="success"] { color: var(--candle); }

.form-status[data-kind="error"] { color: #f3a3a3; }

.contact-note {
  color: var(--muted);
  font-size: 13px;
}

.receipt-box {
  display: block;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--candle) 45%, transparent);
  background: rgb(232 196 160 / 8%);
  color: var(--text);
}

.receipt-box strong {
  color: var(--candle);
  letter-spacing: 0.08em;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.back {
  display: inline-block;
  margin-top: 56px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.back:hover { color: var(--candle); }

@media (max-width: 640px) {
  .sticky-cta {
    display: inline-flex;
    left: 18px;
    right: 18px;
  }

  .hero .badges {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 310px);
  }

  .badge {
    width: 100%;
  }

  section {
    padding: 80px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #particles {
    display: none;
  }
}
