/* ==========================================================================
   Hiroba landing site — washi-paper editorial.
   No frameworks, no build step. The page itself honors NFR-01: light.
   ========================================================================== */

:root {
  --paper: #f9f5ed;
  --paper-deep: #f1eadd;
  --paper-card: #fffdf8;
  --ink: #26211a;
  --ink-soft: #6e6557;
  --ink-faint: #a99e8c;
  --line: #e2d9c8;
  --line-strong: #cfc3ac;
  --accent: #d8552e;
  --accent-deep: #b4431f;
  --accent-soft: #f6ddd2;
  --moss: #5a8f6a;
  --indigo: #34506b;
  --gold: #c0913b;
  --plum: #8d6a9f;
  --night: #221d16;
  --night-ink: #f4ead9;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --maxw: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

::selection { background: var(--accent-soft); color: var(--accent-deep); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--mincho);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.045em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 700;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 1px 2px 0 var(--accent-deep);
}

.brand-sub {
  font-family: var(--gothic);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent-deep); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-deep); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent-deep);
}

.lang-switch a.active {
  background: var(--accent);
  color: #fffdf8;
}

.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--accent-deep); text-decoration: none; transform: translateY(-1px); }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 var(--accent-deep), 0 10px 24px -10px rgba(216, 85, 46, 0.55);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-card); }

.btn .arrow { font-family: var(--mincho); transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: clip;
}

/* faint 2D-floor grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 0%, transparent 70%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

/* huge vertical 広場 watermark */
.hero-vert {
  position: absolute;
  top: 8px;
  right: -28px;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(96px, 14vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  letter-spacing: 0.12em;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

.nowrap { white-space: nowrap; }

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
  position: relative;
}

.hero-lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 33em;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

/* staggered load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .app-mock {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.5s; }
  .app-mock { animation-delay: 0.35s; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-vert { display: none; }
}

/* --------------------------------------------------------------------------
   App mock (live demo)
   -------------------------------------------------------------------------- */

.app-mock {
  position: relative;
  z-index: 1;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 #fff inset,
    0 24px 48px -24px rgba(60, 45, 25, 0.35),
    0 4px 14px -6px rgba(60, 45, 25, 0.18);
  overflow: hidden;
  font-size: 12px;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.mock-titlebar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-titlebar i:nth-child(1) { background: #e0796b; }
.mock-titlebar i:nth-child(2) { background: #e3b35e; }
.mock-titlebar i:nth-child(3) { background: #87b07e; }
.mock-titlebar span {
  margin-left: 8px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.mock-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 348px;
}

.mock-sidebar {
  border-right: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.mock-org {
  padding: 0 14px 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mock-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.mock-roster li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--ink);
  position: relative;
  transition: background 0.15s ease;
}
.mock-roster li:hover { background: rgba(216, 85, 46, 0.07); }
.mock-roster .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--moss);
}
.mock-roster .dot.call { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.mock-roster .dot.away { background: transparent; border: 1.5px solid var(--ink-faint); }
.mock-roster .dot.dnd { background: var(--plum); }
.mock-roster .who { font-weight: 700; }
.mock-roster .where {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 10px;
}
.mock-roster li .page-chip {
  position: absolute;
  right: 10px;
  opacity: 0;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.mock-roster li:hover .page-chip { opacity: 1; }
.mock-roster li:hover .where { opacity: 0; }
.mock-roster li.self .page-chip { display: none; }
.mock-roster li.self:hover .where { opacity: 1; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 85, 46, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(216, 85, 46, 0); }
}

.mock-main { display: flex; flex-direction: column; }

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
}
.mock-tabs button {
  appearance: none;
  font-family: var(--gothic);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 12px;
  cursor: pointer;
}
.mock-tabs button .count {
  color: var(--ink-faint);
  font-weight: 500;
  margin-left: 4px;
}
.mock-tabs button.active {
  background: var(--paper-card);
  border-color: var(--line);
  color: var(--accent-deep);
  position: relative;
  top: 1px;
}

.mock-stage {
  flex: 1;
  position: relative;
  min-height: 250px;
  background: var(--paper-card);
}
.mock-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mock-statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 11px;
}
.mock-statusbar .mic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.mock-statusbar .mic::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.mock-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 92px 0; }
.section.deep { background: var(--paper-deep); }

.sec-head { margin-bottom: 52px; max-width: 620px; }

.sec-no {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-no b {
  font-family: var(--mincho);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0;
}

.sec-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 16px;
}

.sec-lede { color: var(--ink-soft); }

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- problem strip ------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}
.compare > div { padding: 38px 40px; }
.compare .them { border-right: 1px solid var(--line); }
.compare h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare .them h3 { color: var(--ink-faint); }
.compare .us h3 { color: var(--accent-deep); }
.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.compare li {
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.compare li b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.compare .them li b { color: var(--ink-faint); }

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare .them { border-right: none; border-bottom: 1px solid var(--line); }
  .compare > div { padding: 28px 26px; }
}

/* --- core five ----------------------------------------------------------- */

.five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.five article {
  background: var(--paper-card);
  padding: 30px 22px 34px;
  position: relative;
  transition: background 0.25s ease;
}
.five article:hover { background: var(--accent-soft); }
.five .num {
  font-family: var(--mincho);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.five h3 { font-size: 1rem; margin-bottom: 10px; }
.five p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.75; }

@media (max-width: 920px) {
  .five { grid-template-columns: 1fr 1fr; }
  .five article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .five { grid-template-columns: 1fr; }
}

/* --- how it works -------------------------------------------------------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.floor-fig {
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px;
}
.floor-fig .org-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.floor-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.room {
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  min-height: 96px;
}
.room.lobby { grid-column: 1 / -1; border-style: solid; }
.room h4 {
  margin: 0 0 10px;
  font-family: var(--gothic);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.room .ppl { display: flex; gap: 7px; flex-wrap: wrap; }
.room .ppl i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--paper-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.room .hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.page-arc {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.page-arc::before { content: "⟿ "; }

.how-points { display: grid; gap: 26px; }
.how-points article { border-left: 2px solid var(--accent); padding-left: 22px; }
.how-points h3 { font-size: 1.08rem; margin-bottom: 8px; }
.how-points p { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 880px) {
  .how { grid-template-columns: 1fr; gap: 40px; }
}

/* --- numbers ------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.stats .stat { padding: 12px 0; }
.stats .v {
  font-family: var(--mincho);
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  display: block;
}
.stats .v small {
  font-size: 0.45em;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}
.stats .k {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.stats .note {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.stats-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

/* --- open source (dark band) ---------------------------------------------- */

.section.night {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: clip;
}
.section.night .sec-no { color: rgba(244, 234, 217, 0.4); }
.section.night .sec-no b { color: var(--accent); }
.section.night h2 { color: var(--night-ink); }
.section.night .sec-lede { color: rgba(244, 234, 217, 0.6); }

.oss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.term {
  background: #15110c;
  border: 1px solid rgba(244, 234, 217, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  font-size: 0.82rem;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(244, 234, 217, 0.1);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244, 234, 217, 0.18);
}
.term-bar span {
  margin-left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(244, 234, 217, 0.35);
}
.term pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 2;
  color: #e8dfcc;
}
.term .p { color: var(--accent); }
.term .ok { color: #8fbf9c; }
.term .c { color: rgba(244, 234, 217, 0.35); }

.oss-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  font-size: 0.86rem;
  color: rgba(244, 234, 217, 0.6);
  line-height: 1.8;
}
.oss-points li { border-left: 2px solid var(--accent); padding-left: 18px; }
.oss-points b {
  display: block;
  color: var(--night-ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.oss-cta { margin-top: 48px; }

@media (max-width: 880px) {
  .oss-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --- two ways ------------------------------------------------------------ */

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.way {
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.way.hosted { border-color: var(--accent); border-width: 1.5px; }
.way.hosted::before {
  content: "主軸";
  position: absolute;
  top: 18px;
  right: -34px;
  transform: rotate(38deg);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 40px;
}
.way .way-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.way h3 { font-size: 1.35rem; margin-bottom: 14px; }
.way > p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }
.way ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}
.way li { display: flex; gap: 10px; }
.way li::before { content: "—"; color: var(--accent); flex: none; }
.way .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
}

/* --- invited ------------------------------------------------------------- */

.invited {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  background: var(--paper-card);
}
.invited h3 { font-size: 1.05rem; }
.invited p { font-size: 0.88rem; color: var(--ink-soft); flex: 1 1 320px; }
.invited-actions { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.invited .btn { flex: none; }
.invited .btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}
.download-more {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.download-more a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-more a:hover { color: var(--accent); }

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  text-align: center;
  padding: 100px 0 110px;
  position: relative;
  overflow: clip;
}
.cta-band::before {
  content: "広";
  position: absolute;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 360px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  pointer-events: none;
  user-select: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}
.cta-band p {
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.cta-band .hero-ctas { justify-content: center; position: relative; }

/* --------------------------------------------------------------------------
   Pricing page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 76px 0 30px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 18px; }
.page-hero p { color: var(--ink-soft); max-width: 36em; margin: 0 auto; }

.notice {
  max-width: 720px;
  margin: 34px auto 0;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 0.82rem;
  color: var(--accent-deep);
  font-weight: 500;
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.plan {
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: 0 24px 48px -28px rgba(216, 85, 46, 0.45);
}
.plan .plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 14px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 6px; }
.plan .plan-for { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 24px; }
.plan .price {
  font-family: var(--mincho);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.plan .price small { font-size: 0.38em; font-family: var(--gothic); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.plan .price-note { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 26px; min-height: 2.6em; }
.plan ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 24px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--moss); font-weight: 700; flex: none; }
.plan li.minus::before { content: "—"; color: var(--ink-faint); }
.plan li.minus { color: var(--ink-faint); }
.plan .btn { margin-top: auto; justify-content: center; }

@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* comparison table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cmp-table thead th {
  font-family: var(--gothic);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--paper-deep);
}
.cmp-table tbody th { font-weight: 700; color: var(--ink); width: 34%; }
.cmp-table td { color: var(--ink-soft); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .yes { color: var(--moss); font-weight: 700; }
.cmp-table .opt { color: var(--gold); font-weight: 700; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 26px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  font-family: var(--mincho);
  color: var(--accent);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a {
  padding: 0 0 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: rgba(244, 234, 217, 0.65);
  padding: 64px 0 40px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}
.site-footer .brand { color: var(--night-ink); margin-bottom: 16px; }
.footer-tag { max-width: 26em; font-size: 0.82rem; line-height: 1.9; }
.site-footer h4 {
  margin: 0 0 16px;
  font-family: var(--gothic);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(244, 234, 217, 0.4);
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(244, 234, 217, 0.75); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-legal {
  border-top: 1px solid rgba(244, 234, 217, 0.12);
  padding-top: 28px;
  display: grid;
  gap: 10px;
  font-size: 0.74rem;
  color: rgba(244, 234, 217, 0.4);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================== Early-access waitlist ============================== */
.waitlist-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.waitlist-form .wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.waitlist-form .wl-field {
  display: grid;
  gap: 6px;
}
.waitlist-form .wl-wide { grid-column: 1 / -1; }
.waitlist-form .wl-field > span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.waitlist-form .wl-field em {
  font-style: normal;
  color: var(--ink-faint);
  font-weight: 400;
}
.waitlist-form input,
.waitlist-form textarea {
  font-family: var(--gothic);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form textarea { resize: vertical; min-height: 84px; }
.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder { color: var(--ink-faint); }
.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-form .wl-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.waitlist-form .wl-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
}
.waitlist-form .wl-status.is-ok { color: var(--moss); }
.waitlist-form .wl-status.is-error { color: var(--accent-deep); }
.waitlist-form button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.waitlist-form .wl-fineprint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
/* Honeypot — visually and programmatically removed from the flow. */
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .waitlist-form .wl-row { grid-template-columns: 1fr; }
}
