/* ============================================================
   Nekochi LP — warm cream & ginger, matches the app's own palette
   ============================================================ */

:root {
  --cream: #F6F2EA;
  --cream-deep: #EFE6D6;
  --card: #FFFDF8;
  --ink: #2A1D17;
  --ink-mid: #5A4A40;
  --ink-soft: #6F6157;
  --ginger: #B35A17;       /* text-safe orange on cream */
  --ginger-bright: #DB7A2E; /* app accent, for fills */
  --ginger-soft: rgba(219, 122, 46, 0.14);
  --line: #E6DCCD;
  --dark: #2A1D17;
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ginger-bright); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 242, 234, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mini img { width: 34px; height: 34px; border-radius: 8px; }
.brand-mini span { white-space: nowrap; }
.header-spacer { flex: 1; }
.lang-menu { position: relative; font-size: 14px; }
.lang-menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: '▾'; font-size: 11px; opacity: .7; }
.lang-menu[open] > summary::after { content: '▴'; }
.lang-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; z-index: 20;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(42,29,23,.15);
}
.lang-menu-list a { padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang-menu-list a:hover { background: var(--cream); }
.lang-menu-list a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(42,29,23,.18); margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); letter-spacing: -0.01em; }
.h1-sub { display: block; font-size: clamp(15px, 2.2vw, 18px); font-weight: 700; letter-spacing: .04em; color: var(--ginger); margin-top: 8px; }
.hero-catch { font-size: clamp(18px, 2.6vw, 22px); color: var(--ink-mid); margin-top: 14px; }
.hero-sub { color: var(--ink-soft); margin-top: 14px; max-width: 34em; }
.hero-shot { justify-self: center; position: relative; }
.shot {
  border-radius: 26px; border: 5px solid var(--ink);
  box-shadow: 0 24px 50px rgba(42,29,23,.28); background: var(--ink);
}
.hero-shot .shot { width: min(100%, 270px); margin: 0 auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 12px; text-decoration: none;
  background: var(--ink); color: var(--cream); font-weight: 600;
}
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .85; line-height: 1.2; }
.btn-label { line-height: 1.25; }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-soft); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ginger); font-weight: 700; }
.sec-title { font-size: clamp(24px, 4vw, 34px); margin-top: 6px; }
.sec-lead { color: var(--ink-soft); margin-top: 10px; }

.alt { background: var(--cream-deep); }
.dark { background: var(--dark); color: var(--cream); }
.dark .sec-lead, .dark p { color: rgba(246,242,234,.82); }
.dark .sec-kicker { color: #F0A860; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--ink-mid); font-size: 15px; }
.card .ico { font-size: 26px; line-height: 1; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-mid); font-size: 15px; }

/* split: copy + phone */
.split { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: auto 1fr; }
.split .shot { width: 250px; }
.split .copy h2 { font-size: clamp(24px, 4vw, 34px); margin: 6px 0 14px; }
.split .copy > p { color: var(--ink-mid); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-mid); }
.dark .ticks li { color: rgba(246,242,234,.85); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--ginger-bright); color: #2A1405; font-size: 12px; font-weight: 900; display: grid; place-items: center; line-height: 1;
}

/* how-to steps */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--cream); font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { font-size: 18px; padding-top: 8px; }
.steps p { color: var(--ink-mid); margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--ink-mid); font-size: 15px; }

/* footer */
.site-footer { background: var(--dark); color: rgba(246,242,234,.78); padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .brand-mini { color: var(--cream); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap, .split, .split.rev { grid-template-columns: 1fr; }
  .hero .wrap { text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .split .shot { margin: 0 auto; width: min(70%, 250px); }
  .split.rev .shot { order: 2; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- wandering cat + teaser toy (assets/cat.js) ---------- */
#neko {
  --ns: 3;
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; will-change: transform;
  width: calc(32px * var(--ns)); height: calc(30px * var(--ns));
}
#neko canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.neko-say {
  position: absolute; left: 50%; top: calc(var(--ns) * 3px); transform: translate(-50%, -100%);
  padding: 1px 9px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  opacity: 0; transition: opacity .12s;
}
.neko-say.on { opacity: 1; }
.neko-wand { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .2s; }
.neko-wand.on { opacity: 1; }
.neko-wand::before {              /* the stick, held from the upper right */
  content: ""; position: absolute; left: 0; top: -150px; width: 3px; height: 150px; background: #8e6d45;
  transform-origin: 50% 100%; transform: rotate(32deg);
}
.neko-wand::after {               /* pom-pom + feathers */
  content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #e0533d; box-shadow: -9px 4px 0 -3px #f2c14b, 9px 5px 0 -3px #4a7bd1, 0 10px 0 -3px #f2c14b;
  animation: neko-wob .5s ease-in-out infinite alternate;
}
@keyframes neko-wob { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.neko-toy {
  position: fixed; right: 16px; bottom: 16px; z-index: 7;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink-soft);
  background: var(--card); box-shadow: 0 6px 18px rgba(42,29,23,.18); cursor: pointer;
}
.neko-toy[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.neko-toy[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .neko-wand::after { animation: none; } }
