:root {
  color-scheme: light;
  --page: #fff; --text: #202824; --muted: #626d66; --accent: #306657;
  --pale: #f5f7f5; --selection: #def1e4; --border: #e2e7e3;
  --body: 18px; --small: 14px; --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: var(--body); line-height: 1.4; }
button, input, summary { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
img, svg { display: block; }
p, h1, h2, h3, h4 { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
a, button, summary, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--accent); }
::selection { background: var(--selection); color: var(--text); }
mark { background: var(--selection); color: var(--text); border-radius: 3px; padding: 1px 3px; }
.container { width: min(1408px, calc(100% - 12vw)); margin-inline: auto; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-filled { fill: currentColor; stroke: none; }
.brand-mascot { object-fit: contain; pointer-events: none; transform-origin: 50% 90%; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 12px 20px; background: var(--text); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 56px; height: 56px; }
.brand span { font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -.045em; }
.header nav { display: flex; align-items: center; gap: 32px; }
.header nav > a:not(.button) { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--small); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 10px; background: var(--text); color: #fff; font-size: var(--body); line-height: 1.35; font-weight: 550; text-align: center; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.button-small { min-height: 44px; padding: 10px 20px; font-size: var(--small); }
.button-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.button:active, .icon-button:active { transform: scale(.98); }
.text-link, .text-button { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-button { border: 0; background: none; padding: 6px 0; min-height: 44px; font-size: var(--small); text-align: left; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 72px; align-items: start; padding-top: 84px; }
.hero-copy { padding-top: 104px; }
h1 { font-size: clamp(36px,4.4vw,68px); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; }
h1 span { color: var(--accent); }
.hero-description { max-width: 470px; margin-top: 28px; color: var(--muted); font-size: var(--body); line-height: 1.4; }
.hero .download-button { margin-top: 30px; }
.compatibility { margin-top: 12px; color: var(--muted); font-size: var(--small); line-height: 1.4; }
.other-versions { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: var(--small); }
.hero-demo { position: relative; min-width: 0; min-height: 484px; }
.source-preview { padding: 0; border: 0; }
.source-content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 148px; }
.source-prompt { align-self: flex-end; max-width: 85%; padding: 7px 14px; background: var(--pale); border-radius: 16px 16px 4px 16px; color: var(--muted); font-size: var(--small); }
.article-excerpt { font-size: var(--body); line-height: 1.5; }
.source-preview .article-excerpt { max-width: 88%; padding: 10px 16px; background: var(--pale); border-radius: 16px 16px 16px 4px; }
.selected-phrase { display: inline; padding: 2px 3px; border: 0; border-radius: 3px; background: transparent; font: inherit; text-align: left; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.translation-popup { position: relative; margin: 18px 0 0 16%; padding: 16px 22px 2px; border: 1px solid var(--border); border-radius: 18px; background: var(--page); box-shadow: 0 12px 32px -12px #20282425, 0 3px 8px -4px #20282415; }
.popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.popup-brand { display: flex; align-items: center; gap: 8px; }
.popup-brand span { font-size: var(--small); color: var(--muted); font-weight: 600; letter-spacing: .1em; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.bookmark-button[aria-pressed="true"] { color: var(--accent); }
.bookmark-button[aria-pressed="true"] .icon { fill: var(--selection); }
.popup-source { color: var(--muted); font-size: var(--small); margin-bottom: 6px; }
.popup-translation { font-size: var(--body); font-weight: 650; line-height: 1.4; min-height: 26px; margin-bottom: 18px; }
.popup-disclosure { border-top: 1px solid var(--border); }
.disclosure-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 0; border: 0; background: none; font-size: var(--small); text-align: left; }
.disclosure-button[aria-expanded="true"] { color: var(--accent); font-weight: 600; }
.disclosure-button .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.disclosure-button[aria-expanded="true"] .icon { transform: none; }
.hero-meaning { min-height: 60px; }
.hero-meaning p { font-size: var(--small); line-height: 1.4; padding-bottom: 16px; color: var(--muted); }
.example-row { padding-bottom: 14px; }
.example-row p { font-size: var(--small); line-height: 1.4; }
.example-row p + p { margin-top: 4px; color: var(--muted); }
.hero-character { position: absolute; width: 128px; height: 128px; bottom: 72px; left: -14px; }
.scene-caption, .save-status { font-size: var(--small); color: var(--muted); margin: 18px 0 0 16%; text-align: center; }
.save-status { color: var(--accent); min-height: 20px; margin-top: 8px; }
.local-note { grid-column: 1 / -1; margin-top: 36px; padding: 25px 0; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: var(--small); }
.local-note .across-apps { color: var(--text); font-size: var(--body); font-weight: 550; margin-bottom: 8px; }
h2 { font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
/* Original feature panels, restored from the screenshot supplied by the author. */
.features { padding-top: 64px; padding-bottom: 64px; --control-size: 44px; overflow-anchor: none; }
.features .feature-copy { max-width: 380px; padding-top: 0; }
.features .article-window { min-height: 152px; }
.features .translation-popup { position: relative; width: 100%; margin: 0; }
.features .popup-header { min-height: 28px; }
.features .language-pair { margin-top: 0; }
.features .editor-sentence { padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; }
.features #write-sentence { box-shadow: none; }
.features .corrected-sentence, .features .correction-reason { padding-right: 0; }
.features .demo-actions, .features .demo-status { padding-right: 0; }
.features .feature-stage { min-width: 0; }
.features .stage-guide { pointer-events: none; position: absolute; z-index: 3; }
.features .stage-guide img { width: 100%; height: 100%; }
.features .article-window { position: relative; padding-right: 176px; }
.features .read-guide { width: 140px; height: 140px; right: 22px; top: 18px; }
.features .article-context { padding: 0 8px 24px 18px; margin-bottom: 22px; border-left: 2px solid var(--border); }
.features .article-label { margin-bottom: 10px; font-size: var(--small); line-height: 1.5; color: var(--muted); }
.features .article-excerpt { font-size: 15px; line-height: 1.65; color: var(--text); }
.features .article-excerpt mark { padding: 1px 3px; border-radius: 3px; background: var(--selection); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.features .feature-stage > .translation-popup { min-height: 405px; }
.features .feature-stage .writing-preview { min-height: 365px; }
.features .editor-sentence[lang="ja"] { letter-spacing: 0; }
.features .editor-sentence.has-result { color: var(--accent); }
.features .dictionary-footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); }
.features .dictionary-footer .dictionary-hint { padding: 0; border: 0; }
.features .example-row { padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.features .example-row:first-child { border-top: 0; padding-top: 0; }
.features .example-row p + p { margin-top: 3px; color: var(--muted); }
.features .feature-copy h3 { font-size: 31px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.features .feature-tabs { display: flex; align-items: stretch; gap: 36px; margin-top: 32px; border-bottom: 1px solid var(--border); }
.features .feature-tabs [role="tab"] { position: relative; min-height: 52px; padding: 14px 0; border: 0; border-radius: 0; color: var(--muted); background: none; font-size: 16px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.features .feature-tabs [aria-selected="true"] { color: var(--accent); font-weight: 600; }
.features .feature-tabs [aria-selected="true"]::after { position: absolute; content: ""; height: 2px; inset: auto 0 -1px; background: var(--accent); }
.features .feature-panel { min-height: 398px; display: grid; grid-template-columns: .85fr 1.4fr; align-items: center; gap: 72px; padding-top: 40px; }
.features .feature-copy { min-width: 0; }
.features .feature-copy > p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.features .feature-preview { min-width: 0; padding: 26px 28px; }
.features .feature-preview .popup-header { margin-bottom: 12px; }
.features .feature-preview .popup-brand span { color: var(--text); letter-spacing: .04em; }
.features .feature-preview .popup-translation { font-size: 23px; margin-bottom: 14px; }
.features .meaning-label { color: var(--accent); font-size: 14px; line-height: 1.5; font-weight: 600; }
.features .feature-meaning { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.features .feature-examples { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 15px; }
.features .feature-examples .example-row { border: 0; padding: 0 0 14px; }
.features .feature-examples .example-row:last-child { padding-bottom: 0; }
.features .demo-caption { margin-top: 20px; text-align: right; font-size: 13px; line-height: 1.5; color: var(--muted); }
.features .writing-preview { position: relative; background: none; padding: 0; border: 0; }
.features .editor-label { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.features .editor-sentence { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; }
.features .correction-preview { margin-top: 24px; padding-top: 24px; border-top: 1px solid #d7ded8; }
.features .corrected-sentence { margin-top: 14px; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.features .corrected-sentence > span { background: var(--selection); color: var(--accent); padding: 0 3px; border-radius: 3px; }
.features .correction-reason { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.features .demo-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.features .demo-status { margin-top: 12px; min-height: 1.5em; color: var(--muted); font-size: 14px; line-height: 1.5; }
.features .demo-actions .text-button { font-size: 14px; }
.features .writing-note { margin-top: 24px; padding-top: 24px; border-top: 1px solid #d7ded8; font-size: 15px; line-height: 1.6; color: var(--muted); }
.features .language-pair { font-size: var(--small); letter-spacing: .06em; font-weight: 600; color: var(--accent); }
.features .writing-note p { margin-top: 8px; }
.features .feature-stage .draft-scene { min-height: 430px; padding: 22px 8px 0; }
.features .draft-surface, .features .reply-paper { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 24px -16px #20282435; padding: 24px; }
.features .draft-surface { width: calc(100% - 72px); min-height: 162px; padding-right: 104px; }
.features .draft-surface .editor-label { margin-bottom: 18px; }
.features .draft-scene .correction-preview { position: relative; z-index: 2; min-height: 0; margin: -14px 0 0 24px; width: calc(100% - 24px); padding: 22px 24px; background: #fff; border: 1px solid var(--border); }
.features .proof-guide { width: 152px; height: 152px; right: 8px; top: 10px; }
.features .draft-scene .demo-actions, .features .draft-scene > .demo-status { margin-left: 24px; }
.features .draft-scene .demo-actions { margin-top: 18px; }
.features .draft-scene[data-applied="true"] .editor-sentence { color: var(--accent); }
.features .feature-stage .reply-scene { min-height: 420px; padding: 12px 0 28px; }
.features .reply-context { margin: 0 0 20px 0; width: fit-content; border-radius: 18px 18px 18px 4px; color: var(--muted); }
.features .reply-paper { padding: 28px 28px 36px; }
.features .reply-paper .editor-sentence { display: table; max-width: 100%; padding: 2px 4px; margin-left: -4px; border-radius: 4px; }
.features .reply-paper .editor-sentence.has-result { background: var(--selection); color: var(--text); }
.features .reply-paper .editor-sentence::after { content: ""; display: inline-block; height: 1em; margin-left: 3px; border-right: 1.5px solid var(--text); vertical-align: -.12em; }
.features .reply-paper .demo-status { max-width: calc(100% - 140px); }
.features .reply-paper .demo-actions { padding-right: 140px; }
.features .reply-paper .demo-actions .button { max-width: 100%; }
.features .write-guide { width: 140px; height: 140px; right: 12px; bottom: 12px; }
.features .dictionary-section { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--border); display: grid; grid-template-columns: .85fr 1.4fr; align-items: center; gap: 72px; }
.features .dictionary-copy h3 { font-size: 30px; }
.features .dictionary-stage { position: relative; min-width: 0; padding-bottom: 24px; }
.features .dictionary-preview { position: relative; min-width: 0; border: 1px solid var(--border); border-left: 12px solid var(--accent); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 4px 4px 0 var(--pale), 7px 7px 0 var(--border); }
.features .dictionary-preview::after { content: ""; position: absolute; top: 0; left: 20px; width: 16px; height: 28px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%); }
.features .dictionary-guide { width: 132px; height: 132px; right: 12px; bottom: 0; }
.features .dictionary-stage .dictionary-footer { min-height: 96px; padding-right: 156px; }
.features .dictionary-toolbar { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 34px 20px 18px; border-bottom: 1px solid var(--border); }
.features .dictionary-toolbar > p { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.features .dictionary-search { display: flex; flex-direction: column; gap: 6px; width: 48%; min-width: 160px; color: var(--muted); }
.features .dictionary-search .icon { width: 17px; height: 17px; }
.features .search-label { font-size: 14px; line-height: 1.4; font-weight: 500; }
.features .search-control { display: flex; align-items: center; gap: 8px; min-height: var(--control-size); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--pale); }
.features .dictionary-content { display: grid; grid-template-columns: .85fr 1.25fr; min-height: 214px; }
.features .dictionary-list { padding: 14px 10px; border-right: 1px solid var(--border); }
.features .dictionary-item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 15px; line-height: 1.45; }
.features .dictionary-item[aria-pressed="true"] { background: var(--selection); box-shadow: inset 2px 0 0 var(--accent); }
.features .dictionary-item span { display: block; }
.features .dictionary-item span:first-child { font-weight: 550; letter-spacing: -.015em; }
.features .dictionary-item span + span { margin-top: 3px; font-size: 13px; color: var(--muted); }
.features .dictionary-detail { min-width: 0; padding: 22px 36px 62px 22px; }
.features .dictionary-detail h4 { font-size: 23px; line-height: 1.2; font-weight: 600; margin: 0 0 8px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.features .dictionary-detail p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.features .dictionary-detail blockquote { margin: 20px 0 0; font-size: 15px; line-height: 1.5; font-style: italic; }
.features .dictionary-detail .context-label { color: var(--accent); font-size: var(--small); line-height: 1.5; font-weight: 550; margin-top: 24px; }
.features .dictionary-detail .context-label + blockquote { margin-top: 7px; }
.features .dictionary-detail mark { color: inherit; background: var(--selection); border-radius: 3px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.features .dictionary-empty { padding: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.features .dictionary-hint { padding: 12px 20px; font-size: 13px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--border); }
.faq { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 72px; padding-top: 44px; padding-bottom: 64px; }
.faq h2 { max-width: 300px; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 18px; font-size: var(--body); line-height: 1.4; font-weight: 550; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq details > p { color: var(--muted); font-size: var(--body); line-height: 1.4; padding: 0 32px 20px 0; }
.plus { width: 16px; height: 16px; flex: 0 0 auto; position: relative; color: var(--accent); }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { width: 16px; height: 1.5px; left: 0; top: 7px; }
.plus::after { width: 1.5px; height: 16px; top: 0; left: 7px; }
details[open] > summary .plus::after { display: none; }
.closing { position: relative; padding-top: 28px; padding-bottom: 64px; }
.closing-copy { padding-right: 180px; }
.closing .download-button { margin-top: 26px; }
.closing-mascot { position: absolute; width: 144px; height: 144px; right: 32px; top: 44px; }
.all-versions { margin-top: 26px; }
.all-versions > summary { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; cursor: pointer; font-size: var(--small); color: var(--accent); }
.all-versions > summary .icon { width: 16px; height: 16px; }
.all-versions[open] > summary .icon { transform: rotate(180deg); }
.version-links { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 8px; }
.version-links > div { display: flex; flex-direction: column; align-items: flex-start; }
.version-links a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; color: var(--accent); font-size: var(--body); font-weight: 550; }
.version-links span { color: var(--muted); font-size: var(--small); }
.download-note { font-size: var(--small); color: var(--muted); margin-top: 18px; }
.download-note + .download-note { margin-top: 6px; }
.footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.footer p { font-size: var(--small); color: var(--muted); }
.install-dialog { width: min(580px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; margin: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #10251a30; overscroll-behavior: contain; }
.install-dialog::backdrop { background: #10251a50; }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; box-shadow: 0 -24px 0 #fff, 0 8px 0 #fff; }
.dialog-header h2 { font-size: 24px; line-height: 1.25; }
.install-steps { padding-left: 22px; margin: 24px 0 0; }
.install-steps li { margin-top: 20px; padding-left: 4px; font-size: var(--body); line-height: 1.4; }
.install-steps p { color: var(--muted); font-size: var(--small); line-height: 1.4; margin-top: 6px; }
.picker-help { color: var(--muted); margin-top: 20px; font-size: var(--body); }
.picker-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (hover:hover) and (pointer:fine) { .button:hover { background: var(--accent); } .button-secondary:hover { color: #fff; } .text-button:hover, .text-link:hover { color: var(--text); } .icon-button:hover { background: var(--pale); color: var(--accent); } }
@media (max-width:1100px) { .hero { gap: 0 40px; padding-top: 56px; } .hero-demo { min-height: 480px; } .translation-popup { margin-left: 8%; } .scene-caption, .save-status { margin-left: 8%; } .hero-character { width: 100px; height: 100px; left: -36px; bottom: 24px; } .feature-panel, .faq { gap: 40px; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); } .work-surface { padding: 22px; } }
@media (max-width:850px) { .container { width: calc(100% - 48px); } .header { min-height: 80px; } .header nav { gap: 20px; } .header nav a[href="#features"] { display: none; } .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; } .hero-copy { max-width: 600px; } h1 { font-size: clamp(36px,7vw,58px); } .hero-description { margin-top: 20px; max-width: 500px; } .hero-demo { width: 100%; max-width: 600px; justify-self: center; min-height: 0; } .translation-popup { margin-left: 15%; } .hero-character { left: -5px; bottom: 48px; width: 112px; height: 112px; } .scene-caption, .save-status { margin-left: 15%; } .local-note { margin-top: 0; padding: 22px 0; } .features { padding-top: 48px; padding-bottom: 40px; } .feature-panel { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } .feature-copy { max-width: 520px; } .feature-copy p { margin-top: 8px; } .faq { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 44px; } .faq h2 { max-width: none; } .closing { padding-top: 16px; } }
@media (max-width:480px) { .container { width: calc(100% - 40px); } .brand img { width: 44px; height: 44px; } .brand { gap: 6px; } .brand span { font-size: 26px; } .header nav { gap: 14px; } .header nav > a:not(.button) { display: none; } .header .button { padding-inline: 16px; } .hero { padding-top: 36px; gap: 32px; } h1 { font-size: clamp(34px,9vw,42px); } .hero .download-button { margin-top: 22px; } .other-versions { margin-top: 6px; } .hero-demo { padding-bottom: 6px; } .source-preview { padding: 0; } .article-excerpt { font-size: var(--small); line-height: 1.5; min-height: 42px; } .source-label { font-size: var(--small); margin-bottom: 10px; } .translation-popup { margin: 18px 0 0 28px; padding: 12px 16px 2px; border-radius: 14px; } .hero-character { width: 76px; height: 76px; left: -18px; bottom: 25px; } .scene-caption, .save-status { margin-left: 28px; } .hero-meaning { min-height: 66px; } .local-note { text-align: left; } .feature-tabs { justify-content: space-between; gap: 10px; margin-top: 20px; } .feature-tabs button { font-size: var(--body); padding-inline: 0; } .work-surface { min-height: 340px; padding: 20px 18px; border-radius: 14px; } .stage-mascot { width: 84px; height: 84px; right: 10px; bottom: 8px; } .demo-actions { padding-right: 0; } .demo-actions .button { font-size: var(--small); padding-inline: 18px; } .demo-status { padding-right: 64px; } .corrected-sentence, .correction-reason { padding-right: 0; } .dictionary-content { grid-template-columns: 1fr; gap: 20px; } .dictionary-list { flex-direction: row; flex-wrap: wrap; } .dictionary-entry { flex: 1 1 130px; } .dictionary-detail { padding-left: 0; padding-top: 16px; border-left: 0; border-top: 1px solid var(--border); } .closing-copy { padding-right: 0; } .closing-copy h2 { max-width: 270px; } .closing-mascot { width: 76px; height: 76px; right: 0; top: 70px; } .closing .download-button { max-width: calc(100% - 60px); } .version-links { gap: 16px 32px; } .footer { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 16px; padding-block: 24px; } .install-dialog { padding: 18px; } .dialog-header h2 { font-size: 22px; } .picker-options { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-contrast:more) { :root { --muted: #3c4840; --border: #819087; } }
html:lang(ja) { line-break: strict; }

/* Responsive continuation of the restored feature panels. */
.features .feature-copy > p { font-size: var(--body); line-height: 1.4; }
@media (max-width:1100px) {
  .features .feature-panel, .features .dictionary-section { gap: 40px; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); }
}
@media (max-width:850px) {
  .features .feature-panel, .features .dictionary-section { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .features .feature-copy { max-width: 600px; }
  .features .feature-copy h3 { font-size: 28px; }
  .features .feature-copy h3 br { display: none; }
  .features .article-window { padding-right: 132px; min-height: 136px; }
  .features .read-guide { width: 112px; height: 112px; top: 12px; right: -4px; }
  .features .dictionary-section { margin-top: 44px; padding-top: 44px; }
}
@media (max-width:480px) {
  .features .feature-tabs { gap: 18px; margin-top: 24px; justify-content: flex-start; }
  .features .feature-tabs [role="tab"] { flex: 1 1 0; min-width: 0; white-space: normal; text-align: left; text-wrap: balance; font-size: 14px; }
  .features .feature-panel { min-height: 0; padding-top: 32px; gap: 28px; }
  .features .feature-copy > p { margin-top: 16px; }
  .features .feature-preview { padding: 20px; }
  .features .feature-preview .popup-translation { font-size: 21px; }
  .features .article-window { padding-top: 62px; padding-right: 0; min-height: 0; }
  .features .article-context { padding-left: 14px; }
  .features .read-guide { width: 100px; height: 100px; right: 0; top: -22px; }
  .features .writing-preview { padding: 0; }
  .features .feature-stage .draft-scene { min-height: 450px; padding: 28px 0 0; }
  .features .draft-surface { width: 100%; padding: 22px 100px 24px 18px; min-height: 164px; }
  .features .draft-scene .correction-preview { margin: -10px 0 0 12px; width: calc(100% - 12px); padding: 20px 18px; }
  .features .draft-scene .demo-actions, .features .draft-scene > .demo-status { margin-left: 12px; }
  .features .proof-guide { width: 100px; height: 100px; top: -6px; right: 0; }
  .features .feature-stage .reply-scene { min-height: 430px; padding-bottom: 36px; }
  .features .reply-paper { padding: 22px 18px; }
  .features .write-guide { width: 100px; height: 100px; right: 8px; bottom: 14px; }
  .features .reply-paper .demo-status { max-width: calc(100% - 96px); }
  .features .reply-paper .demo-actions { padding-right: 96px; }
  .features .dictionary-toolbar { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .features .dictionary-search { width: 100%; min-width: 0; }
  .features .dictionary-preview { border-left-width: 8px; }
  .features .dictionary-preview::after { display: none; }
  .features .dictionary-content { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .features .dictionary-list { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .features .dictionary-item { min-width: 140px; flex: 1 0 140px; }
  .features .dictionary-detail { padding: 20px 20px 28px; min-height: 150px; }
  .features .dictionary-guide { width: 104px; height: 104px; right: 8px; bottom: 0; }
  .features .dictionary-stage .dictionary-footer { padding: 12px 108px 12px 16px; min-height: 100px; }
}

/* Open conversation: bubbles carry the dialogue; the app window is the only frame. */
.hero-character .hero-mascot { position: static; width: 100%; height: 100%; }
.hero-demo { --scene-duration: 180ms; }
.scene-reply-slot { align-self: flex-end; min-height: 34px; }
.scene-reply { padding: 6px 14px; color: var(--accent); background: var(--selection); border-radius: 16px 16px 4px 16px; font-size: var(--small); }
.scene-shortcut { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; min-height: 30px; color: var(--muted); font-size: var(--small); }
kbd { display: inline-flex; min-width: 26px; height: 26px; align-items: center; justify-content: center; padding-inline: 6px; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 6px; background: #fff; color: var(--text); font: inherit; }
.selected-phrase > span { position: relative; isolation: isolate; }
.selected-phrase > span::before { position: absolute; content: ''; inset: -2px -3px; z-index: -1; border-radius: 3px; background: var(--selection); clip-path: inset(0); transition: clip-path 250ms var(--ease-out); }
.hero-demo[data-scene-phase="reading"] .selected-phrase > span::before { clip-path: inset(0 100% 0 0); }
.hero-demo:is([data-scene-phase="reading"], [data-scene-phase="selected"], [data-scene-phase="shortcut"]) #hero-popup { opacity: 0; pointer-events: none; }
.hero-demo:not(:is([data-scene-phase="reply"], [data-scene-phase="complete"])) .scene-reply { opacity: 0; }
.hero-demo[data-scene-phase="shortcut"] kbd { transform: translateY(2px); background: var(--selection); }
.scene-shortcut kbd { transition: transform 140ms var(--ease-out), background-color 140ms ease; }
#hero-popup { transform-origin: top left; }
.scene-caption { margin-top: 14px; }
.scene-save-slot { min-height: 36px; margin: 4px 0 0 16%; text-align: center; }
.scene-save-receipt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; color: var(--accent); font-size: var(--small); }
.scene-save-receipt .icon { width: 16px; height: 16px; }
#scene-saved-word { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-status { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.bookmark-flight { position: fixed; inset: 0 auto auto 0; z-index: 30; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px); padding: 9px 13px; border-radius: 10px; background: var(--selection); color: var(--accent); box-shadow: 0 5px 18px #20282416; font-size: var(--small); pointer-events: none; }
.bookmark-flight span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.features .search-control:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.features .search-control input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--small); outline: none; }
.features .search-control input::placeholder { color: var(--muted); opacity: 1; }
.features .dictionary-content[data-empty="true"] .dictionary-list { grid-column: 1 / -1; border-right: 0; }
.features .dictionary-content[data-empty="true"] .dictionary-detail { display: none; }
.features .dictionary-empty { padding: 18px; }
.footer > .text-link { font-size: var(--small); min-height: 44px; display: flex; align-items: center; }
@media (max-width:1100px) { .scene-save-slot { margin-left: 8%; } .hero-copy { padding-top: 80px; } }
@media (max-width:850px) { .scene-save-slot { margin-left: 15%; } .hero-copy { padding-top: 0; } }
@media (max-width:480px) {
  .source-content { min-height: 148px; }
  .source-preview .article-excerpt { font-size: var(--body); min-height: 0; }
  .scene-shortcut { gap: 5px; }
  .scene-shortcut > span:last-child { margin-left: 3px; }
  .scene-save-slot { margin-left: 28px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-demo .selected-phrase > span::before { clip-path: inset(0); }
}
