:root {
  color-scheme: light;
  --paper: #f6f3e9;
  --white: #fffdf6;
  --ink: #18312a;
  --quiet: #4a6056;
  --green: #175744;
  --mint: #bdecd0;
  --rule: #c8cec0;
  --serif: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK TC", serif;
  --sans: "Avenir Next", "PingFang TC", "Hiragino Sans", "Noto Sans CJK TC", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.65 var(--sans); }
img { display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #286c55; outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 2; transform: translateY(-150%); padding: 8px 16px; background: var(--white); }
.skip-link:focus { transform: none; }
.page-width { width: min(100% - 88px, 1190px); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; line-height: .95; font-family: var(--serif); font-weight: 700; font-size: 1.9rem; letter-spacing: -.08em; flex-shrink: 0; }
.brand small { display: block; margin-top: 5px; color: var(--quiet); font: 600 .625rem/1 var(--sans); letter-spacing: .13em; }
.site-nav, .languages { display: flex; align-items: center; gap: 20px; }
.site-nav a, .languages a { text-decoration: none; font-size: .84rem; font-weight: 650; }
.site-nav a:hover, .text-link:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.languages { gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 30px; }
.languages a { padding: 7px 11px; border-radius: 30px; white-space: nowrap; }
.languages a:hover { background: #e4ebdd; }
.languages a[aria-current] { color: var(--white); background: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 76px); padding-block: 84px 91px; }
.kicker { margin: 0 0 18px; font-family: var(--mono); color: var(--green); font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .115em; }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; }
.hero-eyebrow span { width: 10px; height: 10px; border: 1px solid var(--green); background: var(--mint); transform: rotate(45deg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
h1 { font-size: clamp(3rem, 6vw, 6.1rem); line-height: .99; letter-spacing: -.076em; }
h1 em { color: var(--green); font-weight: inherit; }
:lang(ja) > .hero-copy h1, :lang(zh-Hant) > .hero-copy h1 { font-size: clamp(2.35rem, 4.45vw, 4.75rem); line-height: 1.15; letter-spacing: -.055em; }
:lang(ja) > .hero-copy h1 em, :lang(zh-Hant) > .hero-copy h1 em { font-style: normal; }
.lead { margin: 24px 0; color: var(--quiet); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 44ch; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.primary { min-height: 48px; display: inline-flex; align-items: center; gap: 19px; padding: 10px 17px; background: var(--ink); border: 1px solid var(--ink); color: var(--white); border-radius: 6px; text-decoration: none; font-weight: 650; font-size: .9rem; }
.primary:hover { background: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-size: .87rem; font-weight: 700; text-decoration: none; }
.hero-note { margin: 23px 0 0; font-size: .76rem; color: var(--quiet); }

.demo { min-width: 0; margin: 0; padding: 24px 23px 12px; border: 1px solid #a7bfac; border-radius: 20px; background-color: #e0eddf; background-image: linear-gradient(#6f98791b 1px, transparent 1px), linear-gradient(90deg, #6f98791b 1px, transparent 1px); background-size: 23px 23px; }
.device { border: 1px solid #799386; border-radius: 16px; background: var(--white); padding: 15px; box-shadow: 5px 7px 0 #829c862c; }
.device-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 .68rem/1 var(--mono); color: var(--quiet); letter-spacing: .08em; margin-bottom: 15px; }
.device-lights { display: flex; gap: 5px; }
.device-lights i { width: 7px; height: 7px; border-radius: 50%; background: #a4b5a4; }
.device-lights i:first-child { background: #dfaa52; }
.message { display: flex; align-items: center; min-height: 76px; border: 1px solid #cdd8cb; border-radius: 9px; padding: 10px 13px; color: var(--quiet); background: #fafbf5; }
.message-placeholder { font-size: .83rem; }
.message-text { color: var(--ink); font-size: clamp(.95rem, 2vw, 1.32rem); font-weight: 650; }
.message-text:not(:empty)::after { content: ""; display: inline-block; height: 1.15em; margin-inline-start: 3px; border-right: 2px solid #28765b; vertical-align: -.16em; }
.demo-complete .message-text::after { display: none; }
.demo-keyboard { padding: 8px; margin-top: 9px; background: #e6ece5; border: 1px solid #d3dcd3; border-radius: 10px; }
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.etto-key { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 2px 8px; font-size: .75rem; background: var(--mint); border: 1px solid #a4cdb3; border-radius: 20px; color: var(--ink); font-weight: 700; }
.lookup-open .etto-key { background: #91d9ae; }
.demo-spelling { padding-inline: 7px; font: 600 .78rem/1.3 var(--mono); color: var(--green); }
.key-grid, .demo-lookup { min-height: 103px; }
.key-grid { display: grid; gap: 4px; }
.key-grid > div { display: flex; gap: 4px; justify-content: center; }
.key-grid span { display: grid; place-items: center; width: calc((100% - 36px) / 10); min-height: 30px; background: #fffef9; border: 1px solid #cfd9ce; border-radius: 4px; box-shadow: 0 1px #c7d1c7; font: 600 .72rem/1 var(--mono); }
.lookup-modes { display: flex; flex-wrap: wrap; gap: 4px; }
.lookup-modes button { min-height: 36px; padding: 5px 10px; border: 1px solid #b6c8b9; border-radius: 5px; background: #fffef9; color: var(--ink); font-size: .75rem; font-weight: 650; }
.lookup-modes [aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lookup-answer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 57px; color: var(--ink); }
.lookup-query { font-size: .92rem; }
.lookup-candidate { border: 1px solid #8cbca0; background: var(--mint); padding: 2px 10px 5px; border-radius: 6px; min-height: 43px; color: var(--ink); font-weight: 700; }
.lookup-candidate rt { font-size: .64em; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; gap: 8px; }
.step-counter { font: 700 .7rem/1 var(--mono); color: var(--quiet); }
.step-button { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #84b597; border-radius: 6px; background: var(--mint); padding: 6px 13px; color: var(--ink); font-weight: 750; font-size: .85rem; }
.step-button:hover, .lookup-candidate:hover { background: #9bdfb4; }
.demo-hint { margin: 7px 0 0; color: var(--quiet); font-size: .75rem; min-height: 2.6em; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 11px; margin-top: 11px; font: 650 .69rem/1.4 var(--mono); color: #365748; }

.feature-section, .status-section, .faq-section { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(24px, 6vw, 85px); padding-block: 66px; border-top: 1px solid var(--rule); }
.section-intro h2 { font-size: clamp(2rem, 3.55vw, 3.7rem); line-height: 1.12; letter-spacing: -.062em; max-width: 17ch; }
:lang(ja) .section-intro h2, :lang(zh-Hant) .section-intro h2 { letter-spacing: -.035em; line-height: 1.25; }
.section-intro p:not(.kicker) { margin: 17px 0 0; color: var(--quiet); max-width: 48ch; }
.feature-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 12px; border-bottom: 1px solid var(--rule); padding: 23px 0 25px; }
.feature-row:first-child { padding-top: 0; }
.feature-index { grid-row: span 2; color: var(--green); font: 700 .75rem/1 var(--mono); padding-top: 5px; }
.feature-copy .kicker { margin-bottom: 6px; }
.feature-copy h3 { font-size: clamp(1.28rem, 2.2vw, 1.8rem); line-height: 1.25; letter-spacing: -.025em; }
.feature-copy p:not(.kicker) { margin: 8px 0 0; color: var(--quiet); }
.sample { grid-column: 2; justify-self: start; max-width: 100%; margin: 10px 0 0; border-left: 3px solid #8ac3a0; padding: 5px 10px; color: var(--green); background: #e6ecde; font-size: .86rem; overflow-wrap: anywhere; }

.field-section { background: #dfecdc; padding-block: 65px; }
.field-section .section-intro h2 { max-width: none; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid #a4b9a8; }
.example { padding: 20px 22px 0; border-right: 1px solid #a4b9a8; }
.example:first-child { padding-left: 0; }
.example:last-child { border-right: 0; padding-right: 0; }
.example .kicker { margin-bottom: 9px; }
.example p { margin: 0; color: #355044; font-size: .9rem; }
.example h3 { margin-block: 6px 10px; font-size: clamp(1.08rem, 1.65vw, 1.65rem); line-height: 1.3; }
.status-section { border-top: 0; }
.platforms { margin: 0; }
.platform { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.platform:first-child { padding-top: 0; }
.platform dt { font: 700 1.35rem/1.5 var(--serif); }
.platform dd { margin: 0; }
.platform dd p { margin: 6px 0 0; color: var(--quiet); font-size: .87rem; }
.state { display: inline-block; border: 1px solid #b4c6b5; border-radius: 15px; padding: 3px 9px; color: var(--green); font-size: .74rem; font-weight: 750; line-height: 1.3; }
.platform:first-child .state { background: var(--mint); }
details { border-bottom: 1px solid var(--rule); }
summary { padding: 13px 0; cursor: pointer; font-weight: 700; color: var(--ink); }
details:first-child summary { padding-top: 0; }
details p { margin: 0 0 14px; color: var(--quiet); }
.site-footer { background: #e5ebdd; border-top: 1px solid var(--rule); padding-block: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; }
.footer-inner p { margin: 12px 0 0; color: var(--quiet); font-size: .87rem; }
.footer-links { align-self: end; text-align: right; display: grid; gap: 5px; font-size: .83rem; }
.footer-links a { color: var(--green); text-decoration: none; font-weight: 700; }
.footer-links small { color: var(--quiet); }

@media (max-width: 850px) {
  .page-width { width: min(100% - 48px, 1190px); }
  .site-nav { display: none; }
  .hero { gap: 25px; padding-block: 55px 60px; }
  .demo { padding: 14px 12px 10px; }
}
@media (max-width: 660px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { min-height: 66px; gap: 6px; }
  .brand { font-size: 1.66rem; gap: 5px; }
  .brand img { width: 32px; height: 32px; }
  .languages a { padding: 7px 8px; font-size: .73rem; }
  .hero, .feature-section, .status-section, .faq-section { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .hero { padding-block: 39px 42px; }
  h1 { font-size: clamp(2.75rem, 11vw, 4.4rem); }
  :lang(ja) > .hero-copy h1, :lang(zh-Hant) > .hero-copy h1 { font-size: clamp(2.35rem, 9.3vw, 4rem); }
  .lead { margin-block: 17px; }
  .hero-note { margin-top: 13px; }
  .hero-actions { gap: 6px 16px; }
  .feature-section, .field-section, .status-section, .faq-section { padding-block: 42px; }
  .feature-row { grid-template-columns: 26px minmax(0, 1fr); gap: 0 9px; }
  .examples { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .example, .example:first-child, .example:last-child { border: 0; border-bottom: 1px solid #a4b9a8; padding: 16px 0; }
}
@media (max-width: 340px) {
  .page-width { width: calc(100% - 28px); }
  .device { padding: 10px; }
  .languages a { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.etto-key:disabled { cursor: default; }
.etto-key:not(:disabled):hover { background: #9bdfb4; }
