/* kosokoso site — built on the nae design system (assets/tokens.css).
   Tokens (colors, fonts, motion) come from tokens.css; this file only adds
   layout + components. nae principles: tools not ornaments, no drop shadows,
   8px grid, restraint. */

:root {
	--r-card: 8px;   /* cards & buttons (design.md) */
	--r-input: 6px;  /* form inputs */
	--maxw: 1040px;
}

/* Native cursor by default; the rich custom cursor (motion.js) opts in by
   adding `.custom-cursor` to <html> (only on fine pointers, motion allowed). */
html, body, a, button, [data-cursor] { cursor: auto; }
a, button { cursor: pointer; }
html.custom-cursor, html.custom-cursor a, html.custom-cursor button, html.custom-cursor [data-cursor] { cursor: none; }

/* Custom cursor (dot + easing ring), per nae's rich-motion direction. */
.cursor-dot, .cursor-ring {
	position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
	border-radius: 50%; will-change: transform; opacity: 0;
	transition: opacity var(--dur-fast) var(--ease-out-expo);
}
.custom-cursor .cursor-dot, .custom-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--nae-ink-strong); }
.cursor-ring {
	width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid var(--nae-mute);
	transition: border-color var(--dur-fast) var(--ease-out-expo), opacity var(--dur-fast) var(--ease-out-expo);
}
.cursor-ring.is-hover { border-color: var(--nae-blue); }

/* Reveal-on-scroll (ease-out-expo). Falls back to visible without JS / reduced motion. */
[data-reveal] {
	opacity: 0; transform: translateY(18px);
	transition: opacity var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.hero [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.hero [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.hero [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.steps .step:nth-child(2), .pricing .plan:nth-child(2) { transition-delay: 80ms; }
.steps .step:nth-child(3), .pricing .plan:nth-child(3) { transition-delay: 160ms; }
.features .feature:nth-child(2), .features .feature:nth-child(5) { transition-delay: 80ms; }
.features .feature:nth-child(3), .features .feature:nth-child(6) { transition-delay: 160ms; }
.features .feature:nth-child(4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

body { font-family: var(--font-body), var(--font-jp); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
h1, h2, h3 { color: var(--nae-ink-strong); font-family: var(--font-display), var(--font-jp); letter-spacing: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nae-mute); margin-bottom: 16px; }

/* ── Buttons ── */
.btn {
	display: inline-block; background: var(--nae-blue); color: #fff;
	border: 1px solid var(--nae-blue); border-radius: var(--r-card);
	padding: 13px 26px; font-size: 15px; font-weight: 600;
	transition: background var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.btn:hover { background: var(--nae-blue-deep); border-color: var(--nae-blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--nae-ink-strong); border-color: var(--nae-line-soft); }
.btn-ghost:hover { background: var(--nae-bone); color: var(--nae-ink-strong); border-color: var(--nae-ink-strong); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 28px; height: 28px; }
.logo span { font-weight: 700; font-size: 18px; color: var(--nae-ink-strong); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--nae-mute); transition: color var(--dur-fast) var(--ease-out-expo); }
.nav-links a:hover { color: var(--nae-ink-strong); }
.lang-toggle {
	font-family: var(--font-mono); font-size: 12px; color: var(--nae-mute);
	border: 1px solid var(--nae-line-soft); border-radius: var(--r-input);
	padding: 5px 10px; line-height: 1; min-width: 56px; text-align: center;
	transition: color var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.lang-toggle:hover { color: var(--nae-ink-strong); border-color: var(--nae-ink-strong); }

/* ── Hero ── */
.hero { text-align: center; padding: 96px 0 72px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); font-weight: 700; line-height: 1.04; margin-bottom: 22px; }
.hero p { font-size: clamp(17px, 1.8vw, 22px); color: var(--nae-mute); max-width: 640px; margin: 0 auto 36px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chip {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
	font-family: var(--font-mono); font-size: 13px; color: var(--nae-ink);
	background: var(--nae-bone); border: 1px solid var(--nae-line-soft);
	border-radius: var(--r-card); padding: 10px 18px;
}
.chip .arrow { color: var(--nae-mute); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 8px; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--nae-blue); margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--nae-mute); }

/* ── Features ── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.1; margin-bottom: 12px; }
.section-head p { font-size: clamp(15px, 1.5vw, 18px); color: var(--nae-mute); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--nae-line-soft); border: 1px solid var(--nae-line-soft); border-radius: var(--r-card); overflow: hidden; }
.feature { background: var(--nae-paper); padding: 32px 28px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--nae-mute); line-height: 1.6; }

/* ── Pricing: tier 1 (required) + tier 2 (optional modes) ── */
.tier-required { max-width: 600px; margin: 0 auto; }
.plan-lead { text-align: left; }
.plan-lead .cols { columns: 2; column-gap: 28px; }
.plan-lead .cols li { break-inside: avoid; }

.modes-head { text-align: center; margin: 64px 0 28px; }
.modes-head h3 { font-size: clamp(20px, 2.6vw, 28px); }
.modes-head p { font-size: clamp(14px, 1.4vw, 16px); color: var(--nae-mute); max-width: 620px; margin: 10px auto 0; line-height: 1.6; }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.mode {
	background: var(--nae-paper); border: 1px solid var(--nae-line-soft);
	border-radius: var(--r-card); padding: 28px 26px; display: flex; flex-direction: column;
}
.mode .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nae-mute); margin-bottom: 12px; }
.mode h3 { font-size: 17px; margin-bottom: 4px; }
.mode .price { font-size: 30px; font-weight: 800; color: var(--nae-ink-strong); }
.mode .price small { font-size: 13px; font-weight: 500; color: var(--nae-mute); }
.mode .desc { font-size: 14px; color: var(--nae-mute); margin: 8px 0 18px; }
.mode ul { list-style: none; margin-bottom: 22px; flex: 1; }
.mode li { font-size: 14px; color: var(--nae-ink); padding-left: 24px; position: relative; margin-bottom: 10px; }
.mode li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-right: 2px solid var(--nae-blue); border-bottom: 2px solid var(--nae-blue); transform: rotate(45deg); }
.mode .addon { font-size: 13px; color: var(--nae-mute); border-top: 1px solid var(--nae-line-soft); padding-top: 14px; margin-top: 4px; }
.mode .addon a { color: var(--nae-blue); }
.mode-foot { font-family: var(--font-mono); font-size: 12px; color: var(--nae-mute); text-align: center; padding: 10px; border: 1px dashed var(--nae-line-soft); border-radius: var(--r-input); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--nae-paper); border: 1px solid var(--nae-line-soft); border-radius: var(--r-card); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--nae-blue); }
.plan h3 { font-size: 17px; margin-bottom: 4px; }
.plan .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nae-blue); margin-bottom: 12px; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--nae-ink-strong); }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--nae-mute); }
.plan .desc { font-size: 14px; color: var(--nae-mute); margin: 8px 0 20px; }
.plan ul { list-style: none; margin-bottom: 24px; flex: 1; }
.plan li { font-size: 14px; color: var(--nae-ink); padding-left: 24px; position: relative; margin-bottom: 10px; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-right: 2px solid var(--nae-blue); border-bottom: 2px solid var(--nae-blue); transform: rotate(45deg); }
.plan .addon { font-size: 13px; color: var(--nae-mute); border-top: 1px solid var(--nae-line-soft); padding-top: 14px; margin-top: 4px; }
.plan .addon a { color: var(--nae-blue); }

/* ── Tech strip ── */
.tech { text-align: center; background: var(--nae-bone); border-top: 1px solid var(--nae-line-soft); border-bottom: 1px solid var(--nae-line-soft); }
.tech p { font-family: var(--font-mono); font-size: 13px; color: var(--nae-mute); letter-spacing: 0.02em; }

/* ── Content (legal) pages ── */
.content { max-width: 760px; margin: 24px auto 80px; }
.content h1 { font-size: 30px; margin-bottom: 8px; }
.content .updated { font-size: 13px; color: var(--nae-mute); margin-bottom: 36px; font-family: var(--font-mono); }
.content h2 { font-size: 18px; margin: 32px 0 10px; }
.content p, .content li { font-size: 15px; color: var(--nae-ink); margin-bottom: 12px; line-height: 1.65; }
.content ul, .content ol { padding-left: 22px; }
.content a { color: var(--nae-blue); }
.note { background: var(--nae-bone); border: 1px solid var(--nae-line-soft); border-radius: var(--r-input); padding: 14px 16px; font-size: 13px; color: var(--nae-mute); }

/* ── Centered card (checkout) ── */
.center { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.card { background: var(--nae-paper); border: 1px solid var(--nae-line-soft); border-radius: var(--r-card); padding: 44px; max-width: 440px; width: 100%; text-align: center; }
.card .icon { font-size: 40px; margin-bottom: 16px; }
.card h1 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--nae-mute); margin-bottom: 20px; line-height: 1.55; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--nae-line-soft); border-top-color: var(--nae-blue); border-radius: 50%; margin: 0 auto 16px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--nae-line-soft); padding: 32px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .copy { font-size: 13px; color: var(--nae-mute); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--nae-mute); }
.footer-links a:hover { color: var(--nae-ink-strong); }

/* ── Responsive ── */
@media (max-width: 860px) {
	.steps, .features, .pricing, .modes { grid-template-columns: 1fr; }
	.plan-lead .cols { columns: 1; }
	.features { gap: 1px; }
	.hero h1 { font-size: 38px; }
	.section { padding: 56px 0; }
}
