/* The Tokyo Wolf — shared styles. Two moods: studio (ink & washi) and komorebi (forest). */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Serif JP"; src: url("/assets/fonts/serif-jp.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #111312; --ink-2: #1A1D1B; --paper: #F3ECE0; --paper-soft: #CFC8BC; --muted: #8E8A82;
  --vermilion: #C8432E; --line: rgba(243, 236, 224, .12);
  --forest: #0E1712; --forest-2: #16231B; --forest-line: #22362A; --moss: #9CC58A; --sun: #E9C46A;
  --text: #EDEFE8; --text-soft: #D9DED3; --forest-muted: #9FB0A3;
  --max: 1080px; --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.jp { font-family: "Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 9; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header & footer ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-weight: 700; font-size: 13px; letter-spacing: .24em; }
.site-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; opacity: .75; }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-foot { padding: 40px 0 56px; font-size: 13px; border-top: 1px solid var(--line); margin-top: 96px; }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; opacity: .75; }
.site-foot a:hover { opacity: 1; }

/* ---------- Studio (home) ---------- */
body.studio { background: var(--ink); color: var(--paper-soft); }
.studio .site-head, .studio .site-foot { color: var(--paper); }
.studio .site-foot { color: var(--muted); }
.hero { position: relative; padding: 96px 0 120px; overflow: hidden; }
.hero .kanji { position: absolute; right: -10px; top: 40px; font-size: clamp(180px, 34vw, 400px); line-height: .9; color: var(--paper); opacity: .045; writing-mode: vertical-rl; pointer-events: none; user-select: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--vermilion); margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.025em; color: var(--paper); font-weight: 600; margin: 0; max-width: 13ch; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 34em; margin: 26px 0 0; color: var(--paper-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 50px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 28px; }
.section-title h2 { margin: 0; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); font-weight: 700; }
.section-title .jp { color: var(--muted); font-size: 18px; }

.app-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--forest); color: var(--text-soft); text-decoration: none; border: 1px solid var(--forest-line); transition: transform .2s ease; }
.app-card:hover { transform: translateY(-2px); }
.app-card .copy { padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.app-card .head { display: flex; align-items: center; gap: 16px; }
.app-card .head img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.app-card h3 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.01em; }
.app-card .head .jp { color: var(--sun); font-size: 15px; }
.app-card p { margin: 0; font-size: 16px; }
.app-card .more { margin-top: auto; padding-top: 10px; color: var(--moss); font-weight: 700; font-size: 15px; }
.app-card .art { position: relative; min-height: 340px; background: radial-gradient(120% 90% at 70% 10%, rgba(233,196,106,.35), transparent 55%), linear-gradient(180deg, #13211A, #0B130F); }
.app-card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; width: fit-content; }
.pill-sun { background: rgba(233,196,106,.14); color: var(--sun); }
.pill-sun::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.principle .jp { color: var(--vermilion); font-size: 26px; display: block; margin-bottom: 10px; }
.principle h3 { margin: 0 0 6px; color: var(--paper); font-size: 17px; }
.principle p { margin: 0; font-size: 15px; }

.contact { text-align: center; padding: 40px 0 0; }
.contact h2 { color: var(--paper); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 12px; font-weight: 600; }
.contact a.mail { color: var(--paper); font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; text-decoration-color: var(--vermilion); text-underline-offset: 6px; }

/* ---------- Komorebi pages ---------- */
body.komorebi { background: var(--forest); color: var(--text-soft); }
.komorebi .site-head, .komorebi .site-foot { color: var(--text); }
.komorebi .site-foot { color: var(--forest-muted); border-color: var(--forest-line); }
.k-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 64px 0 80px; }
.k-hero .lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.k-hero .lockup img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.k-hero .lockup .jp { color: var(--sun); font-size: 30px; line-height: 1; }
.k-hero .lockup small { display: block; font-size: 11px; letter-spacing: .26em; font-weight: 700; color: var(--forest-muted); margin-top: 8px; }
.k-hero h1 { color: var(--text); font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.025em; margin: 0; font-weight: 600; }
.k-hero p.lead { font-size: 19px; margin: 22px 0 0; max-width: 30em; }
.k-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.store-soon { display: inline-flex; flex-direction: column; justify-content: center; padding: 0 22px; min-height: 56px; border-radius: 16px; background: var(--text); color: var(--forest); text-decoration: none; }
.store-soon small { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .7; }
.store-soon strong { font-size: 17px; line-height: 1.2; }
.k-link { color: var(--moss); font-weight: 700; text-decoration: none; padding: 12px 4px; }

.ring-card { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; background: radial-gradient(110% 70% at 75% 0%, rgba(233,196,106,.42), transparent 60%), linear-gradient(180deg, #172A20, #0B130F 75%); border: 1px solid var(--forest-line); overflow: hidden; }
.ring-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: var(--radius); padding: 28px; }
.feature .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(156,197,138,.12); color: var(--moss); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; color: var(--text); font-size: 19px; }
.feature p { margin: 0; font-size: 15px; }

.k-section { padding-top: 88px; }
.k-section > h2 { color: var(--text); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 600; }
.k-section > p.sub { margin: 0 0 30px; max-width: 40em; font-size: 17px; }
.k-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sun); margin: 0 0 14px; }

.score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.score div { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: 18px; padding: 20px; }
.score b { display: block; color: var(--text); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.score span { font-size: 14px; color: var(--forest-muted); }

.dose { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--sun); color: var(--forest); border-radius: 28px; padding: 34px; }
.dose b { font-size: clamp(48px, 8vw, 84px); line-height: 1; letter-spacing: -.03em; display: block; }
.dose p { margin: 0; font-size: 17px; }
.dose small { display: block; margin-top: 8px; font-weight: 700; font-size: 12px; opacity: .75; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: var(--radius); padding: 26px; }
.plan.best { border-color: var(--moss); }
.plan h3 { margin: 0; color: var(--text); font-size: 17px; }
.plan .price { color: var(--text); font-size: 30px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.02em; }
.plan p { margin: 0; font-size: 14px; color: var(--forest-muted); }
.free-note { margin-top: 16px; font-size: 15px; }

.privacy-band { display: flex; gap: 22px; align-items: center; background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: 28px; padding: 30px 34px; }
.privacy-band svg { flex: none; color: var(--moss); }
.privacy-band h3 { margin: 0 0 4px; color: var(--text); font-size: 20px; }
.privacy-band p { margin: 0; }

/* ---------- Long-form (privacy, support, terms) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 0 0; }
.doc h1 { color: var(--text); font-size: clamp(32px, 5vw, 44px); letter-spacing: -.02em; margin: 6px 0 6px; font-weight: 600; line-height: 1.1; }
.doc .updated { color: var(--forest-muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { color: var(--text); font-size: 21px; margin: 44px 0 10px; }
.doc h3 { color: var(--text); font-size: 16px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc a { color: var(--moss); }
.doc .card { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: 18px; padding: 20px 22px; margin: 14px 0; }
.doc .card p { margin: 0; }
.doc .card p + p { margin-top: 8px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc-nav a { background: var(--forest-2); border: 1px solid var(--forest-line); padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text-soft); }
.doc-nav a[aria-current] { background: var(--moss); border-color: var(--moss); color: var(--forest); }
details { border-bottom: 1px solid var(--forest-line); padding: 6px 0; }
details summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--text); font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--moss); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lost .jp { font-size: 96px; color: var(--vermilion); line-height: 1; }
.lost h1 { color: var(--paper); margin: 18px 0 8px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .app-card, .k-hero { grid-template-columns: 1fr; }
  .app-card .art { min-height: 240px; order: -1; }
  .app-card .copy { padding: 30px 26px 34px; }
  .principles, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring-card { aspect-ratio: 1 / 1; }
  .hero { padding: 56px 0 80px; }
  .k-hero { padding: 36px 0 56px; }
  .dose { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
  .privacy-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .site-nav { gap: 16px; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand span { font-size: 11px; letter-spacing: .16em; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
