/* ==========================================================
   KISSCAT — clean UI
   Palette: washi stone paper, ink, indigo, single vermillion accent
   ========================================================== */

:root {
  --paper:      #EFEAE0;
  --paper-2:    #F8F5EE;
  --ink:        #1C1B19;
  --ink-soft:   #6B6357;
  --indigo:     #2C3A57;
  --indigo-2:   #435477;
  --vermillion: #A8402A;
  --gold:       #B08D4F;
  --line:       rgba(28, 27, 25, .13);
  --line-soft:  rgba(28, 27, 25, .07);

  --serif: 'Shippori Mincho', serif;
  --sans:  'Zen Kaku Gothic New', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --container: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo-2);
  margin: 0 0 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--indigo);
  color: var(--paper-2);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--ink); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn--line {
  border-color: var(--ink);
  color: var(--ink);
  padding: 10px 20px;
  font-size: .85rem;
}
.btn--line:hover { background: var(--ink); color: var(--paper-2); }
.btn--text {
  padding: 14px 4px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
}
.btn--text:hover { color: var(--vermillion); border-color: var(--vermillion); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 56px);
  background: rgba(239, 234, 224, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, padding .25s ease;
}
.nav.scrolled {
  border-color: var(--line);
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.nav__links {
  display: flex;
  gap: 34px;
  font-size: .92rem;
  font-weight: 500;
}
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--vermillion); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta { white-space: nowrap; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav__burger span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- layout helpers ---------- */
main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 56px);
  scroll-margin-top: 84px;
}
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.25; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-top: clamp(48px, 8vw, 90px) !important;
}
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.hero__title-accent { color: var(--vermillion); }
.hero__sub {
  margin-top: 26px;
  max-width: 440px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}
.hero__proof {
  margin-top: 40px;
  font-size: .88rem;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.hero__proof-num { color: var(--ink); font-weight: 700; }
.hero__proof-sep { margin: 0 8px; color: var(--line); }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.enso {
  position: absolute;
  width: min(420px, 90%);
  height: auto;
  opacity: .9;
}
#ensoPath {
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.8s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}
@media (prefers-reduced-motion: reduce) {
  #ensoPath { stroke-dashoffset: 0; animation: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.call-card {
  position: relative;
  z-index: 2;
  width: 240px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(28, 27, 25, .35);
}
.call-card__bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; }
.call-card__live { color: var(--vermillion); font-weight: 700; }
.call-card__time { color: var(--ink-soft); }
.call-card__faces { display: flex; justify-content: center; gap: -10px; margin: 22px 0; position: relative; height: 64px; }
.face {
  position: absolute; top: 0; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--paper-2);
}
.face--a { left: 50%; transform: translateX(-58%); background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); z-index: 2; }
.face--b { left: 50%; transform: translateX(-8%); background: linear-gradient(135deg, var(--vermillion), var(--gold)); z-index: 1; }
.call-card__row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: .68rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip--muted { color: var(--indigo-2); }

.float-note {
  position: absolute;
  font-family: var(--mono);
  font-size: .72rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 14px 30px -18px rgba(28, 27, 25, .4);
  z-index: 3;
}
.float-note--top { top: 4%; right: 2%; }
.float-note--bottom { bottom: 8%; left: -2%; }

/* ---------- stats ---------- */
.stats { padding-top: 0 !important; padding-bottom: 0 !important; }
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--indigo); }
.stat__label { font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--paper-2);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__glyph {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--indigo);
}
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- steps ---------- */
.steps__list { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.steps__list li:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--vermillion);
  font-weight: 500;
}
.step__body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.step__body p { color: var(--ink-soft); max-width: 520px; }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  position: relative;
  width: 16px; height: 16px; flex-shrink: 0; margin-left: 20px;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; background: var(--ink);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 14px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 14px; transition: transform .2s ease; }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item p { margin-top: 14px; color: var(--ink-soft); max-width: 560px; }

/* ---------- cta ---------- */
.cta { padding-top: 0 !important; }
.cta__inner {
  background: var(--indigo);
  color: var(--paper-2);
  border-radius: 20px;
  padding: clamp(50px, 8vw, 90px) 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__mark {
  font-family: var(--serif);
  position: absolute;
  top: -30px; right: 10px;
  font-size: 220px;
  color: rgba(248, 245, 238, .05);
  line-height: 1;
  user-select: none;
}
.cta__inner h2 { color: var(--paper-2); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta__inner > p:not(.cta__note) { color: rgba(248, 245, 238, .75); margin-bottom: 34px; }
.cta .btn--primary { background: var(--paper-2); color: var(--indigo); }
.cta .btn--primary:hover { background: var(--vermillion); color: var(--paper-2); }
.cta__note { margin-top: 20px; font-family: var(--mono); font-size: .78rem; color: rgba(248, 245, 238, .55); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px) 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; }
.footer__brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer__copy { color: var(--ink-soft); font-size: .85rem; }
.footer__links { display: flex; gap: 22px; font-size: .85rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--vermillion); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper-2);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-family: var(--mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px clamp(20px, 5vw, 56px) 26px;
    gap: 18px;
  }
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}
