/* Neutral page, the app's own warm tones only inside product vignettes, orange kept for the mochi and live status. */
:root {
  color-scheme: light;
  --bg: #fbfaf8; --panel: #f2f0ec; --card: #ffffff; --ink: #1d1d1f; --muted: #6e6b66; --soft: #8a867f;
  --line: #e6e2dc; --accent: #ff7a45; --accent-ink: #b8471f; --app: #faf6f0; --app-line: #ece5da; --ok: #3f8f5a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
a:focus-visible, select:focus-visible, .rail:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; z-index: 20; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.site-nav { display: flex; gap: 24px; margin-left: 12px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.pill:hover { background: #3a3a3c; }
.pill:active { transform: scale(.98); }
.pill.light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.light:hover { background: var(--panel); }
.pill.small { padding: 7px 14px; font-size: 14px; }
.more { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

main { padding: 0 0 80px; }
.center { text-align: center; }
.kicker { margin: 0; color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.kicker.light { color: #f3c7a8; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; padding: 72px 0 0; text-align: center; }
.hero-icon { display: block; margin-bottom: 18px; border-radius: 22px; filter: drop-shadow(0 10px 24px #ff7a4533); }
.hero h1 { max-width: 900px; margin: 12px 0 18px; font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.lead { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 14px; }
.stage { width: 100%; margin-top: 56px; padding: clamp(24px, 5vw, 64px); border-radius: 32px; background: radial-gradient(120% 90% at 50% 0%, #ffe9dc 0%, #fbf3ea 45%, var(--panel) 100%); }

/* Demo window (the signature) */
.demo { max-width: 620px; margin: 0 auto; overflow: hidden; border: 1px solid var(--app-line); border-radius: 18px; background: var(--app); box-shadow: 0 40px 80px -30px #6b4a3240, 0 2px 6px #0000000d; text-align: left; }
.demo-top { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--app-line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 8px; background: #efe8de; color: #6b5a4b; font-size: 12px; font-weight: 600; }
.chip b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chip.big { padding: 8px 14px; font-size: 14px; }
.demo-body { display: flex; flex-direction: column; gap: 12px; min-height: 470px; padding: 22px; }
.bubble { margin: 0; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble.user { align-self: flex-end; max-width: 82%; background: #ece5db; }
.bubble.bot { display: flex; gap: 8px; align-items: flex-start; align-self: flex-start; max-width: 90%; padding-left: 0; }
.bubble.bot svg { flex: none; margin-top: 2px; color: var(--ok); }
.typing { display: flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #c9bfb2; }
.panel { padding: 14px 16px; border: 1px solid var(--app-line); border-radius: 14px; background: #fff; font-size: 14px; }
.panel-title { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #7a6d60; font-size: 13px; font-weight: 600; }
.panel ol { margin: 0; padding-left: 20px; line-height: 1.75; }
.panel ol li::marker { color: #a89a8b; }
.panel.approve { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-color: #f2c6ae; box-shadow: 0 0 0 3px #ff7a4514; }
.panel-strong { margin: 0; font-weight: 600; }
.panel-sub { margin: 3px 0 0; color: #7a6d60; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.approve .actions { margin: 0; }
.btn { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #ddd3c6; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 600; }
.btn.dark { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
.btn.ghost { border-color: transparent; color: #7a6d60; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.log { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #f3ede4; color: #5e5246; font-size: 13px; }
.demo-foot { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--app-line); color: #8b7e70; font-size: 12px; }

/* Demo playback: runs once when JS is on and motion is allowed; otherwise everything is simply shown. */
@media (prefers-reduced-motion: no-preference) {
  .js .demo.play .s1 { animation: rise .5s .2s both; }
  .js .demo.play .s2 { animation: rise .3s 1s both, gone .2s 2.3s forwards; }
  .js .demo.play .s3 { animation: rise .5s 2.3s both; }
  .js .demo.play .press-go { animation: press .5s 4.2s; }
  .js .demo.play .s4 { animation: rise .5s 5s both; }
  .js .demo.play .press-ok { animation: press .5s 6.8s; }
  .js .demo.play .s5 { animation: rise .5s 7.6s both; }
  .js .demo.play .s6 { animation: rise .5s 8.3s both; }
  .js .demo:not(.play) .demo-body > * { opacity: 0; }
  .js .demo.play .typing i { animation: blink 1s infinite; }
  .js .demo.play .typing i:nth-child(2) { animation-delay: .15s; } .js .demo.play .typing i:nth-child(3) { animation-delay: .3s; }
}
.demo:not(.play) .typing, .demo.done .typing { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gone { to { opacity: 0; height: 0; padding: 0; margin: -6px 0; } }
@keyframes press { 40% { transform: scale(.92); box-shadow: 0 0 0 4px #ff7a4540; } }
@keyframes blink { 50% { opacity: .3; } }

/* Sections */
.section { margin-top: 120px; }
.section-title { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.section-intro { max-width: 680px; margin: 0 0 8px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.section-intro.center { margin-left: auto; margin-right: auto; }

.strength-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.strength { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--panel); }
.strength h3 { margin: 26px 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.strength > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.vig { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 170px; padding: 20px; border-radius: 18px; background: var(--app); box-shadow: inset 0 0 0 1px var(--app-line); }
.vig-line { display: flex; align-items: center; gap: 8px; margin: 0; color: #5e5246; font-size: 14px; }
.vig-line.muted { color: #8b7e70; }
.vig .panel.approve { box-shadow: 0 0 0 3px #ff7a4514, 0 10px 24px -12px #6b4a3240; }
.vig .log.faded { opacity: .45; }
.chip.big { align-self: flex-start; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.card { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -20px #00000024; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff0e8; color: var(--accent-ink); }
.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .example { margin-top: auto; padding-top: 16px; color: var(--ink); font-size: 14px; font-weight: 500; font-style: italic; }
.card p + .example { margin-top: 18px; border-top: 1px solid var(--line); }
.example::before { content: "“"; } .example::after { content: "”"; }
.section .center:last-child, .section > p.center { margin-top: 28px; }

/* Screens rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 20px; margin: 44px calc(50% - 50vw) 0; padding: 4px max(24px, calc(50vw - 560px)) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail a, .screenshot-grid a { display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px #00000040; }
.rail img, .screenshot-grid img { display: block; width: 100%; height: auto; }
.rail figcaption, .screenshot-grid figcaption { padding: 14px 4px 0; color: var(--muted); font-size: 15px; text-align: center; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.screenshot-grid figure { margin: 0; }

/* Never */
.never { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; margin-top: 120px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: #1d1d1f; color: #f5f5f7; }
.never h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.never p { margin: 0; color: #a1a1a6; font-size: 17px; line-height: 1.55; }
.never ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.never li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: #2c2c2e; font-size: 16px; font-weight: 500; line-height: 1.4; }
.never li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 28px; border-radius: 24px; background: var(--panel); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps h3 { margin: 20px 0 8px; font-size: 21px; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.notes { max-width: 820px; margin: 80px auto 0; padding: 28px 32px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.notes h2 { margin: 0 0 10px; font-size: 20px; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin-top: 6px; color: var(--muted); line-height: 1.55; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; overflow: hidden; margin-top: 120px; border-radius: 32px; background: #2b2f2a; color: #fff; }
.story-copy { padding: clamp(32px, 4vw, 60px); }
.story h2 { margin: 12px 0 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.story p { margin: 0; color: #d8d8d0; font-size: 18px; line-height: 1.6; }
.story-visual { position: relative; line-height: 0; }
.story-photo { display: block; width: 100%; height: auto; }
.story-screen { position: absolute; left: 64.9%; top: 34.9%; width: 25.6%; height: 26.3%; object-fit: cover; object-position: left top; transform: skewY(2deg) skewX(-8deg); transform-origin: top left; }

.community { display: flex; align-items: center; gap: 22px; margin-top: 20px; padding: 28px 32px; border-radius: 24px; background: var(--panel); }
.community svg { flex: none; }
.community h2 { margin: 0 0 4px; font-size: 21px; }
.community p { margin: 0; color: var(--muted); line-height: 1.55; }
.community .pill { flex: none; margin-left: auto; }

/* Inner pages */
.page-intro { max-width: 820px; padding: 72px 0 12px; }
.page-intro h1 { margin: 10px 0 16px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.page-intro p { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.page-intro + .screenshot-grid { margin-top: 40px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.detail-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.detail-grid article { padding: 24px; border-radius: 22px; background: var(--panel); }
.detail-grid h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
.detail-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.conn-list { margin: 32px 0 0; overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.conn-list > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 20px 26px; border-top: 1px solid var(--line); }
.conn-list > div:first-child { border-top: 0; }
.conn-list dt { font-size: 17px; font-weight: 700; }
.conn-list dd { margin: 0; }
.conn-list p { margin: 0; color: var(--muted); line-height: 1.55; }
.conn-list .parts { margin-top: 6px; color: var(--accent-ink); font-size: 14px; }
.conn-list .parts span { font-weight: 700; }

.download-hero { display: flex; flex-direction: column; align-items: center; padding: 80px 0 20px; text-align: center; }
.download-hero h1 { margin: 6px 0 14px; font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.035em; }
.file { margin: 16px 0 0; color: var(--soft); font-size: 14px; }
.release-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 14px 0 0; }
.release-links a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; margin-top: 48px; }
.panel-box { padding: 30px; border-radius: 26px; background: var(--panel); }
.panel-box h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.02em; }
.panel-box h3 { margin: 22px 0 6px; font-size: 16px; }
.panel-box ul, .panel-box ol { margin: 0; padding-left: 20px; }
.panel-box li, .panel-box p { color: var(--muted); line-height: 1.6; }
.panel-box p { margin: 0; }
.install li { margin-bottom: 12px; padding-left: 4px; }
.checksum { overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.support-page { max-width: 760px; margin: auto; }
.support-form { position: relative; display: grid; gap: 12px; margin: 32px 0 60px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 26px; background: var(--card); }
.support-form label { font-weight: 650; }
.support-form :is(input, select, textarea) { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.support-form textarea { resize: vertical; line-height: 1.5; }
.support-form :is(input, select, textarea, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.support-form .pill { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.support-form .pill:disabled { opacity: .55; cursor: wait; }
.support-caution { margin: 0; color: var(--muted); line-height: 1.5; }
.support-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#support-status { min-height: 1.5em; margin: 0; font-weight: 600; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
footer a { color: var(--muted); }
.brand.small { font-size: 15px; color: var(--ink); }
.brand.small img { border-radius: 6px; }

/* Reveal on scroll (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .bar-inner { flex-wrap: wrap; height: auto; padding: 10px 0 0; row-gap: 0; }
  .site-nav { order: 3; width: 100%; margin: 0; padding: 10px 0 12px; overflow-x: auto; scrollbar-width: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength-grid, .steps, .detail-grid { grid-template-columns: 1fr; }
  .never, .story, .download-grid { grid-template-columns: 1fr; }
  .conn-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .bar-inner { gap: 10px; }
  select { max-width: 110px; }
  .hero { padding-top: 44px; }
  .hero-icon { width: 72px; height: 72px; }
  .stage { margin-top: 40px; padding: 14px; border-radius: 22px; }
  .demo-body { min-height: 0; padding: 16px; }
  .section, .never, .story { margin-top: 80px; }
  .card-grid, .screenshot-grid, .never ul, .detail-grid.two { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 88%; padding: 4px 16px 16px; }
  .community { flex-direction: column; align-items: flex-start; }
  .community .pill { margin-left: 0; }
  footer { flex-direction: column; align-items: flex-start; }
}
.btn { white-space: nowrap; }
.log span:first-child { min-width: 0; }
.vig-title { margin: 0; color: #8b7e70; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.demo { max-width: 680px; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { word-break: auto-phrase; line-break: strict; }
:lang(ko) :is(h1, h2, h3, p) { word-break: keep-all; }
@media (max-width: 600px) { .bar-actions .pill { display: none; } }
