/* Shiro's public pages: monochrome, dark by default, light like the yin-yang. */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/app/assets/assets/fonts/Manrope-400.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/app/assets/assets/fonts/Manrope-600.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/app/assets/assets/fonts/Manrope-700.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/app/assets/assets/fonts/Manrope-800.ttf) format('truetype'); }

:root {
  --bg: #000; --surface: #0e0e0e; --surface-high: #1a1a1a; --border: #262626;
  --text: #fff; --muted: #a3a3a3; --faint: #6b6b6b;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fff; --surface: #f6f6f6; --surface-high: #ececec; --border: #e2e2e2;
    --text: #000; --muted: #5c5c5c; --faint: #8f8f8f; color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 24px; letter-spacing: -1px; }
.brand svg { width: 30px; height: 30px; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 700;
  font-size: 15px; text-decoration: none; border: 1px solid var(--text); cursor: pointer;
  transition: transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
  font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em;
  font-weight: 800; margin: 20px 0 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* Chat mockup */
.phone { border: 1px solid var(--border); border-radius: 36px; background: var(--surface);
  padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); max-width: 400px; margin-left: auto; }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px;
  border-bottom: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-high);
  display: grid; place-items: center; font-weight: 800; border: 1px solid var(--border); }
.who b { display: block; font-size: 15px; }
.who span { color: var(--faint); font-size: 12px; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 4px 6px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(8px); animation: in .5s ease forwards; }
.msg.bot { background: var(--surface-high); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 6px; }
.msg em { color: var(--muted); margin-right: .2em; }
.msg.me em { color: inherit; opacity: .7; }
.msg:nth-child(2) { animation-delay: .5s } .msg:nth-child(3) { animation-delay: 1s }
.msg:nth-child(4) { animation-delay: 1.5s }
.typing { display: inline-flex; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface-high);
  width: fit-content; opacity: 0; animation: in .4s ease 2.1s forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
@keyframes in { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .msg, .typing { animation: none; opacity: 1; transform: none; } }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0 0 44px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 24px; padding: 24px; background: var(--surface); }
.card .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-high);
  display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 8px 0; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--text); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.band { text-align: center; }
.band .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Legal pages */
.doc { max-width: 720px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 8px; }
.doc .updated { color: var(--faint); margin: 0 0 40px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }

/* Character creation */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split .section-lead { margin-bottom: 28px; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { position: relative; padding-left: 28px; color: var(--muted); }
.check li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
.check b { color: var(--text); }
.profile-card { border: 1px solid var(--border); border-radius: 28px; background: var(--surface);
  padding: 28px; text-align: center; max-width: 380px; margin-left: auto; }
.pc-art { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: var(--surface-high);
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 36px; font-weight: 800; }
.pc-name { display: block; font-size: 22px; letter-spacing: -0.02em; }
.pc-tag { color: var(--muted); font-size: 14px; }
.pc-pills { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.pc-pills span { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.pc-greet { text-align: left; background: var(--surface-high); border-radius: 18px; padding: 12px 14px;
  font-size: 14px; margin: 0 0 18px; }
.pc-greet em { color: var(--muted); }
.pc-actions { display: flex; gap: 8px; }
.pc-actions .btn { flex: 1; cursor: default; }
.pc-actions .btn:hover { transform: none; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; }
.plan { border: 1px solid var(--border); border-radius: 24px; padding: 28px; background: var(--surface); }
.plan-plus { border-color: var(--text); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 20px; }
.price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fine { color: var(--faint); font-size: 13px; margin: 20px 0 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700;
  font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.faq summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
  .phone { margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .profile-card { margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta .btn { flex: 1; }
}
