/* RooPal review site. Colours follow the tenant ui-kit tokens (../ui-kit/tokens/tokens.json). */
:root {
  --coral: #ff6b35; --coral-text: #c2410c; /* text on white / cream (4.9:1+); --coral stays for fills */ --navy: #12324f; --ink: #1a1a1a; --body: #4d4d4d; --sub: #595959;
  --ground: #f6f5f2; --cream: #fef8f1; --mint-wash: #eef8f2; --line: #e8e8e8;
  --zero: #18794a; --zero-soft: #ddf2e3;
  --font: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
:lang(ja) { --font: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; font-family: var(--font); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; line-height: 1.5; }
h1, h2, p, dl, dd, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.nav-in { height: 68px; display: flex; align-items: center; gap: 36px; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--body); flex: 1; }
.nav-links a:hover { color: var(--ink); }
.spacer { flex: 1; }
.langs { display: flex; background: var(--ground); border-radius: 10px; padding: 3px; font-size: 13px; color: var(--sub); }
.langs a, .langs span { padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.langs a:hover { color: var(--ink); }
.langs .on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

/* hero */
.hero { background: linear-gradient(180deg, var(--cream) 0, var(--cream) 72%, #fff 100%); overflow: hidden; }
.hero-in { display: flex; align-items: center; gap: 40px; min-height: 640px; }
.hero-text { flex: 0 0 520px; padding: 72px 0; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--navy); }
h1 { font-size: 56px; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; margin: 18px 0 22px; }
h1 em { font-style: normal; color: var(--coral-text); }
.lead { font-size: 18px; line-height: 1.75; color: var(--body); max-width: 500px; }
.soon-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 8px 16px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.soon-pill b { background: var(--coral); color: var(--ink); padding: 6px 12px; border-radius: 10px; font-size: 14px; }
.hero-visual { position: relative; flex: 1; height: 640px; align-self: flex-end; }
.hero-visual .arc { position: absolute; width: 720px; left: -20px; top: 70px; }
.phone { width: 300px; aspect-ratio: 300 / 620; border-radius: 40px; background: #111; padding: 9px; box-shadow: 0 30px 60px rgba(18, 50, 79, .18), 0 8px 20px rgba(0, 0, 0, .1); }
.screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--ground); display: flex; flex-direction: column; }
.status { flex: none; height: 32px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 12px; font-weight: 700; }
.status .dots { display: flex; gap: 3px; }
.status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.screen img { width: 100%; height: auto; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.phone.bottom .screen img { object-position: bottom; }
.hero-visual .p1 { position: absolute; left: 40px; top: 120px; transform: rotate(-4deg); }
.hero-visual .p2 { position: absolute; left: 280px; top: 176px; transform: rotate(3deg); }
.hero-visual .p2 .screen { background: #fff; }

/* areas strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.strip-in b { margin-right: 10px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--body); white-space: nowrap; }
.chip.dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* features */
.feature { padding-top: 96px; scroll-margin-top: 68px; }
.feature-in { display: flex; align-items: center; gap: 88px; }
.feature.rev .feature-in { flex-direction: row-reverse; }
.feature-text { flex: 0 0 440px; }
.label { font-size: 14px; font-weight: 700; color: var(--coral-text); }
.feature h2 { font-size: 36px; line-height: 1.3; margin: 12px 0 14px; }
.feature-text > p:last-child { font-size: 17px; line-height: 1.75; color: var(--sub); }
.feature-visual { flex: 1; height: 420px; border-radius: 28px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.feature-visual.mint { background: var(--mint-wash); align-items: flex-end; }
.feature-visual.cream { background: var(--cream); }
.feature-visual .phone { margin-bottom: -24px; }

.fee-card, .chat { width: 400px; max-width: calc(100% - 32px); background: #fff; border-radius: 18px; box-shadow: 0 12px 32px rgba(18, 50, 79, .1); padding: 22px 24px; }
.fee-name { font-size: 16px; font-weight: 700; }
.fee-rent { font-size: 12px; color: var(--sub); margin: 4px 0 12px; }
.fee-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.fee { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge.zero { background: var(--zero-soft); color: var(--zero); }
.fee-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.fee-card dt { color: var(--body); }
.fee-card .total { font-weight: 700; }
.fee-card .total dt { color: var(--ink); }
.fee-card .total dd { text-align: right; }

.chat { padding: 18px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #eaeff4; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.avatar svg.i { width: 20px; height: 20px; }
.chat-head b { font-size: 15px; display: block; }
.chat-head small { font-size: 12px; color: var(--sub); }
.bubble { max-width: 82%; width: fit-content; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.bubble.me { margin-left: auto; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { background: var(--ground); border-bottom-left-radius: 4px; }

/* coming soon */
.soon { padding: 104px 0 88px; }
.soon-band { border-radius: 32px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 40px; padding: 56px 56px 56px 72px; }
.soon-band > div { flex: 1; }
.soon-band h2 { font-size: 34px; line-height: 1.3; }
.soon-band p { color: #c7d3df; font-size: 17px; margin-top: 12px; line-height: 1.7; }
.soon-band ul { list-style: none; display: flex; gap: 16px; }
.soon-band li { width: 168px; background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; color: #dfe6ee; }
.soon-band li svg.i { width: 36px; height: 36px; stroke-width: 1.5; color: #fff; margin-bottom: 4px; }
.soon-band li b { color: #fff; font-size: 15px; }
.soon-band li span { background: rgba(255, 255, 255, .14); padding: 2px 10px; border-radius: 10px; font-size: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 28px; font-size: 13px; color: var(--sub); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.foot-logo { height: 22px; width: auto; }
.foot-links { display: flex; gap: 24px; margin-left: auto; color: var(--body); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.operator { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 32px; margin-top: 20px; }
.operator dt { color: var(--sub); }
.operator dd { color: var(--ink); margin-top: 2px; }
.copy { margin-top: 20px; }

/* legal pages */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 80px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--sub); }
.back:hover { color: var(--ink); }
.legal h1 { font-size: 36px; margin: 20px 0 8px; }
.legal-meta { font-size: 14px; color: var(--sub); }
.toc { margin: 28px 0 8px; padding: 20px 24px; background: var(--ground); border-radius: 16px; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; columns: 2; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.legal section { padding-top: 32px; scroll-margin-top: 80px; }
.legal h2 { font-size: 20px; margin-bottom: 12px; }
.legal section p, .legal section li { font-size: 15px; line-height: 1.85; color: var(--body); }
.legal section p + p, .legal section ul + p, .legal section p + ul { margin-top: 10px; }
.legal section ul { padding-left: 1.4em; }
.legal section li + li { margin-top: 4px; }

.not-found p { font-size: 16px; margin-top: 12px; }
.not-found a { color: var(--navy); text-decoration: underline; }

/* narrow screens */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; gap: 16px; }
  .hero-in { flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
  .hero-text { flex: none; padding: 40px 0 0; }
  .hero-visual { flex: none; height: 460px; align-self: auto; }
  .hero-visual .arc { width: 520px; left: 50%; margin-left: -280px; top: 30px; }
  .hero-visual .p1 { left: 50%; margin-left: -150px; top: 60px; transform: none; }
  .hero-visual .p2 { display: none; }
  .feature { padding-top: 56px; }
  .feature-in, .feature.rev .feature-in { flex-direction: column; align-items: stretch; gap: 20px; }
  .feature-text { flex: none; }
  .feature-visual { height: 360px; }
  .soon { padding: 56px 0; }
  .soon-band { flex-direction: column; align-items: stretch; padding: 32px 24px; gap: 24px; }
  .soon-band ul { flex-direction: column; gap: 10px; }
  .soon-band li { width: auto; flex-direction: row; padding: 14px 16px; text-align: left; }
  .soon-band li svg.i { width: 24px; height: 24px; margin: 0; }
  .soon-band li span { margin-left: auto; }
  .operator { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav-in { height: 60px; }
  .brand img { height: 22px; }
  .langs a, .langs span { padding: 5px 8px; font-size: 12px; }
  h1 { font-size: 34px; margin: 12px 0 14px; }
  .lead { font-size: 15px; }
  .soon-pill { flex-wrap: wrap; font-size: 13px; }
  .hero-visual { height: 420px; }
  .hero-visual .p1 { width: 250px; margin-left: -125px; }
  .strip-in b { width: 100%; }
  .strip-in { gap: 6px; }
  .chip { height: 28px; padding: 0 7px; font-size: 11.5px; }
  .feature h2 { font-size: 24px; margin: 8px 0; }
  .feature-text > p:last-child { font-size: 15px; }
  .feature-visual { height: 330px; border-radius: 22px; }
  .feature-visual:not(.mint), .feature-visual.mint:has(.chat) { height: auto; min-height: 280px; padding: 28px 0; }
  .feature-visual .phone { width: 250px; margin-bottom: -20px; }
  .fee-card { padding: 18px; }
  .fee-card .total { font-size: 13px; }
  .soon-band h2 { font-size: 24px; }
  .soon-band p { font-size: 14px; }
  .legal h1 { font-size: 28px; }
  .toc ol { columns: 1; }
}

/* Japanese headings run longer per line than Chinese at the same size. */
:lang(ja) h1 { font-size: 46px; }
:lang(ja) .feature h2 { font-size: 32px; }
:lang(ja) .soon-band h2 { font-size: 28px; }
@media (max-width: 600px) {
  :lang(ja) h1 { font-size: 28px; }
  :lang(ja) .feature h2 { font-size: 22px; }
}
:lang(en) h1 { font-size: 46px; }
@media (min-width: 1081px) { :lang(en) .hero-text { flex-basis: 580px; } }
@media (max-width: 600px) { :lang(en) h1 { font-size: 28px; } :lang(en) .feature h2 br { display: none; } }
