/* NAKAMA waitlist page — washi / aizome indigo / hanko red */

:root {
  --paper: #fbfaf7;
  --paper-warm: #f4f2ec;
  --ink: #16233a;
  --indigo: #2d4e8a;
  --shu: #c2402f;
  --shu-dark: #a2311f;
  --muted: #5c6675;
  --line: #e3e0d6;
  --bubble: #eef1f6;
  --white: #ffffff;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --body: "Instrument Sans", "Be Vietnam Pro", "Hiragino Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--indigo); }

/* ---- nav ---- */

.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.wordmark { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark .kanji { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.wordmark .latin { font-size: 0.8rem; letter-spacing: 0.32em; font-weight: 600; }
.nav-right { display: flex; gap: 1rem; align-items: baseline; font-size: 0.85rem; }
.nav-right .by { color: var(--muted); }
.lang a { text-decoration: none; color: var(--muted); padding: 0 0.15rem; }
.lang a.active { color: var(--shu); font-weight: 600; border-bottom: 2px solid var(--shu); }

/* ---- hero ---- */

.hero { padding: 4.5rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero .wrap > div { min-width: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; color: var(--shu);
  letter-spacing: 0.08em; margin-bottom: 1.2rem;
}
.eyebrow .kanji { font-family: var(--display); font-size: 1rem; letter-spacing: 0.2em; }

h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 1.4rem;
}
h1 em { font-style: normal; color: var(--shu); }

.sub { color: var(--muted); max-width: 34em; margin-bottom: 2.2rem; }
.sub strong { color: var(--ink); font-weight: 600; }

/* ---- waitlist form ---- */

.form-label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.6rem; }
.waitlist { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 34em; }
.waitlist input[type="email"], .waitlist select {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--white);
}
.waitlist input[type="email"] { flex: 2 1 14rem; min-width: 0; }
.waitlist select { flex: 1 1 10rem; min-width: 0; }
.waitlist input:focus-visible, .waitlist select:focus-visible, .waitlist button:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 2px;
}
.waitlist button {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--white);
  background: var(--shu); border: none; border-radius: 8px;
  padding: 0.7rem 1.4rem; cursor: pointer; flex: 1 0 auto;
}
.waitlist button:hover { background: var(--shu-dark); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-micro { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; }
.form-done { font-weight: 600; color: var(--indigo); padding: 0.7rem 0; }
.form-error { font-size: 0.85rem; color: var(--shu); margin-top: 0.5rem; }
.founding-link {
  display: inline-block; font-size: 0.92rem; font-weight: 600;
  color: var(--shu); text-decoration: none;
  border: 1.5px solid var(--shu); border-radius: 8px; padding: 0.55rem 1rem;
}
.founding-link:hover { background: var(--shu); color: var(--white); }
.founding-card {
  margin-top: 2rem; padding: 1.4rem 1.6rem; max-width: 34em;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
}
.founding-card h2 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.founding-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem; }

/* ---- phone / chat ---- */

.phone {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 26px;
  box-shadow: 0 18px 44px rgba(22, 35, 58, 0.1);
  max-width: 360px; margin: 0 auto; overflow: hidden;
}
.phone-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--indigo);
  color: var(--white); font-family: var(--display); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.phone-head .name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.phone-head .status { font-size: 0.75rem; color: var(--muted); }
.thread { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.65rem; min-height: 340px; }
.msg {
  max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  animation: msg-in 0.45s ease-out forwards;
}
.msg.user { align-self: flex-end; background: var(--indigo); color: var(--white); border-bottom-right-radius: 4px; }
.msg.kai { align-self: flex-start; background: var(--bubble); border-bottom-left-radius: 4px; }
.msg.card {
  align-self: flex-start; background: var(--white); border: 1.5px solid var(--shu);
  border-radius: 12px; width: 88%;
}
.msg.card .card-title { font-weight: 700; color: var(--shu); font-size: 0.9rem; }
.msg.card .card-sub { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.d1 { animation-delay: 0.4s; } .d2 { animation-delay: 1.3s; } .d3 { animation-delay: 2.4s; }
.d4 { animation-delay: 3.3s; } .d5 { animation-delay: 4.1s; }

@keyframes msg-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg { animation: none; opacity: 1; transform: none; }
}

/* ---- evidence band ---- */

.evidence { background: var(--ink); color: var(--paper); padding: 4.5rem 0; }
.evidence .intro { max-width: 38em; color: #c8cfdc; margin-bottom: 2.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.stat .num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; line-height: 1; }
.stat.hot .num { color: #ff8d78; }
.stat .label { font-size: 0.9rem; color: #c8cfdc; margin-top: 0.6rem; max-width: 16em; }
.evidence .kicker {
  font-family: var(--display); font-size: 1.35rem; line-height: 1.5;
  margin-top: 3rem; max-width: 30em;
}
.evidence .source { font-family: var(--mono); font-size: 0.72rem; color: #8b95a8; margin-top: 1.6rem; }

/* ---- verbs ---- */

.verbs { padding: 5.5rem 0; }
.section-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 0.8rem; }
.section-intro { color: var(--muted); margin-bottom: 3rem; max-width: 36em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card-verb { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.8rem 1.6rem; }
.card-verb .jp { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.card-verb .romaji { font-family: var(--mono); font-size: 0.72rem; color: var(--shu); letter-spacing: 0.08em; margin: 0.2rem 0 1rem; }
.card-verb h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card-verb p { font-size: 0.92rem; color: var(--muted); }
.card-verb .price { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); margin-top: 1rem; }

/* ---- trust ---- */

.trust { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5.5rem 0; }
.trust .wrap { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
.seal {
  width: 96px; height: 96px; border: 3px solid var(--shu); border-radius: 50%;
  color: var(--shu); font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(-7deg); margin-top: 0.4rem;
}
.trust ul { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; max-width: 42em; }
.trust li { padding-left: 1.5rem; position: relative; }
.trust li::before { content: "✕"; position: absolute; left: 0; color: var(--shu); font-weight: 700; }
.trust li.does::before { content: "○"; color: var(--indigo); }
.trust .code-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.6rem; }

/* ---- pricing ---- */

.pricing { padding: 5.5rem 0; }
.pricing table { width: 100%; border-collapse: collapse; max-width: 44em; }
.pricing th, .pricing td { text-align: left; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pricing th { font-size: 0.78rem; font-family: var(--mono); color: var(--muted); font-weight: 500; letter-spacing: 0.05em; }
.pricing .price-col { white-space: nowrap; font-weight: 600; }
.pricing .free { color: var(--shu); }
.pricing .caption { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* ---- closing ---- */

.closing { background: var(--ink); color: var(--paper); padding: 5rem 0; }
.closing .section-title { color: var(--paper); max-width: 24em; }
.closing .form-label { color: #c8cfdc; margin-top: 1.6rem; }
.closing .form-micro { color: #8b95a8; }
.closing .form-done { color: #ff8d78; }
.closing .waitlist input[type="email"], .closing .waitlist select { border-color: transparent; }

/* ---- footer ---- */

.footer { padding: 2.5rem 0 3.5rem; }
.footer p { font-size: 0.78rem; color: var(--muted); max-width: 60em; }

/* ---- responsive ---- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .stats { grid-template-columns: 1fr; gap: 1.8rem; }
  .cards { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust .wrap > div { min-width: 0; }
  .seal { margin-bottom: 0.5rem; }
  .nav-right .by { display: none; }
  .phone { max-width: 100%; }
}

@media (max-width: 480px) {
  .waitlist { flex-direction: column; align-items: stretch; }
  .pricing .price-col { white-space: normal; }
}
