/* Layout: 破魔矢 — the sliced $ is the hero object; one left axis for copy; sections as single ideas on hairlines; the checkout demo is the one orchestrated moment. Dark-first (Sumi), light = Washi. */
:root {
  --surface: #0a0a0b; --raised: #141416; --sunken: #050506;
  --line: #2a2a2d; --line-strong: #646469;
  --ink: #f4f3ef; --muted: #8e8e93; --on-ink: #0a0a0b;
  --gin: #b8b8bc; --beni: #e0102f; --beni-text: #ff3b55; --on-beni: #ffffff;
  --ghost: #151517; --nav-bg: rgba(10,10,11,.74);
  --f-sans: "Geist", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --f-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-ink: cubic-bezier(.7,0,.2,1);
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #f4f3ef; --raised: #ffffff; --sunken: #eae9e4;
    --line: #d8d7d2; --line-strong: #85858a;
    --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
    --gin: #4a4a4f; --beni: #e0102f; --beni-text: #c80a27; --on-beni: #ffffff;
    --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --surface: #f4f3ef; --raised: #ffffff; --sunken: #eae9e4;
  --line: #d8d7d2; --line-strong: #85858a;
  --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
  --gin: #4a4a4f; --beni: #e0102f; --beni-text: #c80a27; --on-beni: #ffffff;
  --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--surface); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.jp { font-family: var(--f-jp); letter-spacing: .3em; }
.mono { font-family: var(--f-mono); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.period { color: var(--beni-text); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mk { height: 26px; width: auto; }
.brand .word { height: 17px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .16s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--f-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: opacity .16s var(--ease-out), border-color .16s var(--ease-out); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); }
.btn .arr { transition: transform .16s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* mark: $ sliced by the hamaya (shared) */
.mk .mi { fill: var(--ink); }
.mk .mr { fill: var(--beni); }
.mk { overflow: visible; }
.mk .whole { opacity: 0; animation: mk-whole var(--t, 1.15s) linear both; }
.mk .cut { opacity: 1; animation: mk-cut var(--t, 1.15s) linear both; }
.mk .ht { transform: translate(6.11px, -2.22px); animation: mk-ht .35s var(--ease-out) var(--t, 1.15s) both; }
.mk .hb { transform: translate(-6.11px, --2.22px); animation: mk-hb .35s var(--ease-out) var(--t, 1.15s) both; }
.mk .arw { animation: mk-fly var(--fly, .5s) cubic-bezier(.5,0,.85,.55) calc(var(--t, 1.15s) - var(--fly, .5s)) both; }
.mk .whole-in { animation: mk-in .5s var(--ease-out) var(--in, .1s) both; }
@keyframes mk-whole { 0%, 99.9% { opacity: 1 } 100% { opacity: 0 } }
@keyframes mk-cut { 0%, 99.9% { opacity: 0 } 100% { opacity: 1 } }
@keyframes mk-ht { from { transform: none } to { transform: translate(6.11px, -2.22px) } }
@keyframes mk-hb { from { transform: none } to { transform: translate(-6.11px, --2.22px) } }
@keyframes mk-fly { 0% { transform: translate(-141.0px, 51.3px); opacity: 0 } 20% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes mk-in { from { opacity: 0; transform: scale(.94) } to { opacity: 1; transform: none } }
.mk.static .whole, .mk.static .cut, .mk.static .ht, .mk.static .hb, .mk.static .arw, .mk.static .whole-in { animation: none; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 112px) clamp(64px, 9vw, 128px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(48px, 7.6vw, 108px); line-height: .94; letter-spacing: -.05em; }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.lead strong { color: var(--ink); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.methods-line { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }

.stage { position: relative; aspect-ratio: 1.15 / 1; max-width: 100%; }
.stage .mk { position: absolute; left: 2%; top: 10%; width: 96%; height: auto; transform-box: fill-box; }
.stage .whole-in { transform-origin: 50% 50%; transform-box: fill-box; }
.tx { position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: chip .7s var(--ease-out) both; }
.tx b { font-weight: 500; }
.t1 { right: 0; top: 0; animation-delay: 1.5s; }
.t2 { left: 0; bottom: 6%; animation-delay: 1.7s; }
.t3 { right: 2%; bottom: 0; animation-delay: 1.9s; }
@keyframes chip { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* status pills */
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.st-paid { background: var(--ink); color: var(--on-ink); }
.st-pending { color: var(--muted); outline: 1px dashed var(--muted); outline-offset: -1px; }
.st-failed { color: var(--beni-text); box-shadow: inset 0 0 0 1px var(--beni-text); }

/* sections */
.section { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.sec-head h2 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1; letter-spacing: -.045em; }
.sec-head p { font-size: 19px; color: var(--muted); max-width: 54ch; }

.meios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.meio { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 8px 0; }
.meio + .meio { padding-left: 28px; border-left: 1px solid var(--line); }
.meio h3 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; line-height: 1; }
.meio p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.meio dl { margin: 8px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.meio dt { color: var(--muted); }
.meio dd { margin: 0; text-align: right; }

/* checkout demo */
.demo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.demo-wrap .sec-head { margin-bottom: 0; }
.checkout { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 28px; background: #ffffff; color: #0a0a0b; box-shadow: 0 30px 60px rgba(0,0,0,.25); border: 1px solid var(--line); }
.co-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.co-total { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid #d8d7d2; }
.co-total span:first-child { font-size: 13px; color: #5e5e63; }
.co-total .amt { font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tab { height: 44px; border-radius: 12px; border: 0; background: #ffffff; box-shadow: inset 0 0 0 1px #d8d7d2; font: 500 14px var(--f-sans); color: #0a0a0b; cursor: pointer; }
.tab[aria-selected="true"] { background: #f4f3ef; box-shadow: inset 0 0 0 1.5px #0a0a0b; font-weight: 600; }
.tab:focus-visible { outline: 2px solid #0a0a0b; outline-offset: 2px; }
.co-note { font-size: 13px; color: #5e5e63; min-height: 40px; }
.paybtn { height: 56px; border-radius: 999px; border: 0; background: #0a0a0b; color: #f4f3ef; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .16s var(--ease-out); }
.paybtn:hover { opacity: .9; }
.paybtn:focus-visible { outline: 2px solid #0a0a0b; outline-offset: 3px; }
.paybtn svg { height: 24px; width: auto; }
.paybtn .mi { fill: #f4f3ef; }
.done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 4px; text-align: center; }
.done .mk { width: 150px; height: auto; --t: .45s; --fly: .35s; --in: 0s; }
.done .mk .mi { fill: #0a0a0b; }
.done h3 { font-size: 24px; letter-spacing: -.02em; }
.done p { font-size: 14px; color: #5e5e63; }
.done .st-paid { background: #0a0a0b; color: #f4f3ef; }
.link-btn { background: none; border: 0; padding: 8px; font: 500 14px var(--f-sans); color: #0a0a0b; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.co-foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #5e5e63; }
.co-foot svg { height: 16px; width: auto; }
.co-foot .mi { fill: #0a0a0b; }

/* devs */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.dev .sec-head { margin-bottom: 28px; }
.feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats b { font-weight: 500; display: block; }
.feats span { color: var(--muted); font-size: 15px; }
.code { background: var(--sunken); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); color: var(--muted); }
.code pre { margin: 0; padding: 26px 24px; overflow-x: auto; font: 14.5px/1.75 var(--f-mono); color: var(--ink); }
.code .c { color: var(--muted); }
.code-note { padding: 0 24px 22px; font-size: 13px; color: var(--muted); }

/* region */
.region { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cur { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.cur .code-iso { font: 500 13px var(--f-mono); color: var(--muted); }
.cur .val { font-size: 19px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.cur .country { font-size: 13px; color: var(--muted); }
.cur.home { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cur.home .code-iso, .cur.home .country { color: var(--on-ink); opacity: .7; }
.region-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* manifesto */
.manifesto { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 8vw, 120px); align-items: center; }
.manifesto .proverb { margin: 0; writing-mode: vertical-rl; white-space: nowrap; font-family: var(--f-min); font-weight: 600; font-size: clamp(44px, 6vw, 72px); line-height: 1.3; letter-spacing: .08em; color: var(--ink); }
.manifesto h2 { font-size: clamp(40px, 7vw, 92px); line-height: .96; letter-spacing: -.05em; }
.manifesto .body { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 48ch; }

/* cta */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { font-size: clamp(48px, 9vw, 116px); line-height: .92; letter-spacing: -.055em; }
.mailbox { display: flex; flex-direction: column; gap: 16px; }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 22px; border: 1px solid var(--line-strong); border-radius: 999px; font: 16px var(--f-mono); min-width: 0; }
.mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }

.pre { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero, .demo-wrap, .dev, .cta { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 480px; width: 100%; justify-self: center; }
  .meios { grid-template-columns: minmax(0, 1fr); }
  .meio + .meio { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .meio { padding-right: 0; padding-bottom: 28px; }
  .region { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout { max-width: 440px; }
}
@media (max-width: 520px) {
  .region { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto { grid-template-columns: minmax(0, 1fr); }
  .manifesto .proverb { writing-mode: horizontal-tb; white-space: normal; font-size: 40px; }
  .tx { font-size: 12px; padding: 8px 10px; gap: 8px; }
  .checkout { padding: 22px; }
  .brand .word { height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1; transform: none; }
}
