/* Room to Breathe website — look "B2 Dusk" */
:root {
  --night: #221d45;
  --dusk: #4a3f86;
  --ink: #ece7ff;
  --ink-soft: #c9c2ee;
  --ink-dim: #a59fd0;
  --amber: #ffc982;
  --cream: #ffd9a0;
  --leaf: #9fd48a;
  --card: rgba(255, 255, 255, .06);
  --card-line: rgba(255, 255, 255, .12);
  --paper: #fff8ec;
  --paper-ink: #4a3f6b;
  --head: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
  --r: 26px;
  color-scheme: dark;
}
html:lang(ja) { --head: "Zen Maru Gothic", "M PLUS Rounded 1c", sans-serif; --body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif; }
html:lang(zh-Hant) { --head: "Chiron GoRound TC", "Noto Sans TC", sans-serif; --body: "Noto Sans TC", "PingFang TC", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--body); color: var(--ink); line-height: 1.6;
  background: var(--night);
  background-image: radial-gradient(1200px 700px at 72% 8%, var(--dusk), transparent 70%), radial-gradient(900px 600px at 0% 60%, #2f2861, transparent 70%);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 18ch; text-wrap: balance; }
h3 { font-size: 21px; color: var(--cream); }
em { color: var(--amber); font-style: normal; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
html:lang(ja) body { word-break: auto-phrase; }
section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.band { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); border-block: 1px solid rgba(255,255,255,.05); }
.kicker { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 201, 130, .14); color: var(--amber); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.lead { color: var(--ink-soft); font-size: 18px; max-width: 52ch; margin: 14px 0 0; }
.small { font-size: 13px; color: var(--ink-dim); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }

/* twinkling sky */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .5; animation: tw 4s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .08; } }
main, .nav, .foot { position: relative; z-index: 1; }

/* buttons: soft, squishy */
.btn {
  font: inherit; font-weight: 800; border: 0; cursor: pointer; border-radius: 16px; padding: 14px 24px;
  background: var(--amber); color: #2a2350; box-shadow: 0 4px 0 #d79f5b, 0 0 32px rgba(255, 201, 130, .35);
  transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 #d79f5b, 0 0 20px rgba(255,201,130,.3); }
.btn.ghost { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 2px rgba(255,201,130,.6); padding: 10px 18px; }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); max-width: 1260px; margin: 0 auto; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: "Fraunces", serif; font-weight: 700; font-size: 21px; }
.links { display: flex; gap: 26px; }
.links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.links a:hover { color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.lang button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--ink-soft); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--night); font-weight: 700; }
@media (max-width: 860px) { .links { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 5vw, 60px); }
.hero h1 { font-size: clamp(42px, 6vw, 66px); }
html:lang(ja) .hero h1, html:lang(zh-Hant) .hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.35; }
html:lang(ja) h2, html:lang(zh-Hant) h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; max-width: 22em; }
.hero .sub { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 22px 0 28px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.waitlist input[type=email] { flex: 1 1 230px; min-width: 0; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); color: #fff; padding: 14px 18px; border-radius: 16px; font: inherit; }
.waitlist input::placeholder { color: var(--ink-dim); }
.waitlist input:focus { outline: none; border-color: var(--amber); }
.form-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.2em; font-weight: 700; }
.form-msg.ok { color: var(--leaf); }
.form-msg.bad { color: #ffb0a8; }
.waitlist.done input, .waitlist.done button { display: none; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* before / after */
.ba { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); aspect-ratio: 864 / 691; user-select: none; touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.ba-handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dusk); font-weight: 800; letter-spacing: 2px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 12px; background: rgba(34,29,69,.8); font-size: 13px; pointer-events: none; }
.tag.l { left: 16px; } .tag.r { right: 16px; }
.ba-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(34,29,69,.8); font-size: 13px; pointer-events: none; transition: opacity .4s; }
.ba.touched .ba-hint { opacity: 0; }

/* try it */
.play { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .play { grid-template-columns: 1fr; } }
.stage { position: relative; aspect-ratio: 1152 / 922; border-radius: var(--r); overflow: hidden; background: #e8e0f7; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.stage img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.stage .base { inset: 0; width: 100%; height: 100%; }
.stage.pointer { cursor: pointer; }
.piece { transition: opacity .7s ease, transform .7s ease, filter .25s; }
.piece.hover { filter: drop-shadow(0 0 6px rgba(255,214,150,.95)) brightness(1.06); }
.piece.gone { opacity: 0; transform: translateY(-8px) scale(.96); }
@media (prefers-reduced-motion: no-preference) { .piece.hint-glow { animation: glow 2.4s ease-in-out 1s 3; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 8px rgba(255,214,150,.9)) brightness(1.06); } }
.cat-hit { position: absolute; border: 0; background: transparent; cursor: pointer; border-radius: 40%; padding: 0; }
#catHit { left: 33.5%; top: 41%; width: 13%; height: 16%; z-index: 3; }
.spark, .heart, .leaf-fly { position: absolute; pointer-events: none; z-index: 5; }
.spark { width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(255,220,160,.9) 45%, transparent 70%); animation: spark .9s ease-out forwards; }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
.heart { font-size: 20px; color: #ff9eb5; animation: heart 1.2s ease-out forwards; }
@keyframes heart { from { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), -60px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .spark, .heart { display: none; } .piece { transition: opacity .3s; } .piece.gone { transform: none; } }

.side { display: flex; flex-direction: column; gap: 16px; }
/* speech box: cream paper, name tag */
.dialog { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 30px 30px 30px 30px / 34px 34px 28px 28px; padding: 26px 24px 22px; min-height: 120px; box-shadow: 0 6px 0 #e6d9c2, 0 18px 40px rgba(0,0,0,.3); font-weight: 600; font-size: 17px; cursor: pointer; }
.dialog p { margin: 0; min-height: 3.2em; }
.nametag { position: absolute; top: -14px; left: 22px; padding: 3px 14px; border-radius: 999px; background: var(--amber); color: #3a2c52; font-weight: 800; font-size: 14px; transform: rotate(-3deg); }
.more { position: absolute; right: 20px; bottom: 8px; color: #d29a55; opacity: 0; }
.dialog.idle .more { opacity: 1; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.panel { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.calm-label { font-weight: 700; }
.stats { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.meter { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a898ea, var(--amber)); transition: width .7s ease; }
.spots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spots button { font: inherit; font-size: 14px; border: 1.5px solid var(--card-line); background: transparent; color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.spots button:hover { border-color: var(--amber); }
.spots button:disabled { color: var(--ink-dim); text-decoration: line-through; border-style: dashed; cursor: default; }
.panel .btn.ghost { align-self: flex-start; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card p { color: var(--ink-soft); margin: 8px 0 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255,201,130,.16); color: var(--amber); font-weight: 800; margin-bottom: 14px; }
.picker { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); padding: 24px; }
@media (max-width: 700px) { .picker { grid-template-columns: 1fr; } }
.picker-q > span { display: block; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { font: inherit; font-weight: 700; border: 0; cursor: pointer; padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--ink); transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
.chips button:hover { transform: translateY(-2px); }
.chips button[aria-checked="true"] { background: var(--amber); color: var(--night); box-shadow: 0 3px 0 #d79f5b; }
.session { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 20px 22px; position: relative; }
.session h3 { color: var(--paper-ink); }
.session p { margin: 6px 0 0; }
.session-k { margin: 0 0 4px !important; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a08bc9; }
.session.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* breathe */
.breathe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.breathe .btn { margin-top: 26px; }
@media (max-width: 800px) { .breathe { grid-template-columns: 1fr; } }
.orb-wrap { display: grid; place-items: center; min-height: 340px; }
.orb { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 10px;
  background: radial-gradient(circle at 35% 30%, #fff1d9, var(--amber) 45%, #c58ad8 100%);
  box-shadow: 0 0 60px rgba(255,201,130,.45), 0 0 140px rgba(168,152,234,.35);
  color: #3a2c52; font-weight: 800; font-size: 18px; transition: transform 4s ease-in-out; }
.orb.idle { animation: idle 5s ease-in-out infinite; }
@keyframes idle { 50% { transform: scale(1.06); } }

/* shiro */
.shiro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 800px) { .shiro { grid-template-columns: 1fr; } }
.shiro-img { position: relative; }
.shiro-img { border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); background: #efe8f8; }
.shiro-img img { width: 100%; }
#catHit2 { left: 53%; top: 68%; width: 18%; height: 13%; }
.bubble { position: absolute; left: 62%; top: 66%; transform: translate(-50%, -100%) scale(.6); background: var(--paper); color: var(--paper-ink); font-weight: 800; padding: 8px 16px; border-radius: 18px; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.3,1.8,.5,1); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--paper); }
.bubble.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.hint { color: var(--leaf); font-weight: 700; margin-top: 18px; }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 36px auto 18px; }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--ink-soft); }
.price li::before { content: "🍃"; margin-right: 8px; font-size: 14px; }
.amt { font-family: var(--head); font-size: 36px; font-weight: 700; margin: 8px 0 0; color: var(--ink); }
.amt-note { margin: 4px 0 0; font-size: 14px; color: var(--ink-dim); }
.amt small { font-family: var(--body); font-size: 15px; color: var(--ink-dim); font-weight: 600; }
.price.best { border-color: rgba(255,201,130,.5); background: rgba(255,201,130,.07); }
#price h2 { margin-inline: auto; text-align: center; }
#price .kicker { display: table; margin-inline: auto; }

/* faq */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
details { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--ink-soft); }

/* cta + footer */
.cta { text-align: center; padding-top: 0; }
.cta h2 { margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.center-form { margin: 28px auto 0; justify-content: center; }
.foot { text-align: center; padding-block: 40px 56px; color: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.06); }
.foot p { margin: 6px 0; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }


/* simple text pages (privacy / support) */
.doc { max-width: 760px; padding-block: 40px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; max-width: none; color: var(--cream); }
.doc p, .doc li { color: var(--ink-soft); }
