:root {
  color-scheme: light;
  --paper: #f7f0e3;
  --paper-light: #fffaf0;
  --ink: #241e19;
  --muted: #65574c;
  --line: #d9cbbb;
  --red: #a23628;
  --red-dark: #842819;
  --night: #272019;
  --shell: 1180px;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.17; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 8px 14px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; min-height: 81px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font: 800 1.8rem/1 system-ui, sans-serif; letter-spacing: -.085em; white-space: nowrap; }
.brand-dot { margin-left: -8px; color: var(--red); }
.brand-mark { display: grid; gap: 3px; align-content: center; width: 31px; height: 31px; border-radius: 9px; padding: 6px; background: var(--red); }
.brand-mark i { height: 2px; border-radius: 1px; background: #fff5e5; }
.brand-mark i:nth-child(2) { width: 78%; }
.brand-mark i:nth-child(3) { width: 56%; }
nav { display: flex; gap: clamp(15px, 4vw, 42px); align-items: center; font-weight: 650; color: var(--muted); }
nav a:hover, .text-link:hover, .footer a:hover { color: var(--red); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: 740; text-align: center; }
.button-dark { min-height: 42px; background: var(--ink); color: var(--paper-light); }
.button-dark:hover { background: #43372d; }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--red-dark); }
.button-light { background: var(--paper-light); color: var(--ink); }
.button-light:hover { background: #efdccc; }
.hero { display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: clamp(28px, 6vw, 86px); padding-block: clamp(55px, 8vw, 107px) clamp(56px, 8vw, 99px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-weight: 720; color: var(--red-dark); }
.eyebrow span { display: inline-block; width: 22px; height: 2px; background: var(--red); }
h1 { margin-block: 16px 22px; font-size: clamp(3.15rem, 6.35vw, 5.85rem); letter-spacing: -.056em; font-weight: 790; }
h1 span { color: var(--red); }
.intro { font-size: clamp(1.04rem, 1.6vw, 1.22rem); max-width: 33ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.demo { min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid #4a3a2e; color: var(--paper-light); background: var(--night); box-shadow: 0 18px 36px #42280f2a; }
.demo-head { display: flex; min-height: 53px; padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; }
.demo-head figcaption { font-weight: 740; }
.demo-head span { color: #dccabd; font-size: .88rem; }
.demo-photo { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.51; background: #795a40; }
.demo-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-photo::after { content: ""; z-index: 0; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, #1b130d8a); }
.demo-caption { position: absolute; z-index: 1; left: 9%; right: 9%; bottom: 10%; text-align: center; padding-block: 5px; line-height: 1.35; color: #fffaf0; font-size: clamp(1.2rem, 2.65vw, 2.35rem); font-weight: 790; text-shadow: 0 2px 6px #171009, 0 1px 2px #171009; }
.demo-caption span { margin-inline-start: .15em; }
.demo-caption[data-style="paper"] { background: #fcf0cb; color: #251b12; text-shadow: none; border-radius: 6px; }
.demo-caption[data-style="word"] span { color: #ffd662; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 15px; border-top: 1px solid #4a3a2e; }
.demo-controls button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; min-height: 38px; border: 1px solid #5d4c40; border-radius: 6px; background: transparent; color: #fff6e8; cursor: pointer; }
.demo-controls button[aria-pressed="true"] { color: #251b12; background: #efe0cb; border-color: #efe0cb; font-weight: 740; }
.demo-controls button:focus-visible { outline-color: #ffd662; }
.swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #8d745f; background: #f6ead9; }
.swatch-ink { background: #3b2e26; }
.swatch-word { background: #ffd662; }
.studio { padding-block: clamp(48px, 7.5vw, 92px); background: #efe3d0; border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, .86fr); align-items: end; gap: 24px; margin-bottom: 28px; }
h2 { font-size: clamp(2.25rem, 4.9vw, 4.1rem); letter-spacing: -.045em; font-weight: 780; }
.section-head > p, .studio-detail p { color: var(--muted); max-width: 470px; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; border-block: 1px solid #c8b8a4; }
.workflow li { padding: 22px clamp(12px, 3vw, 37px) 25px; border-left: 1px solid #c8b8a4; }
.workflow li:first-child { padding-left: 0; border-left: 0; }
.workflow-term { display: block; font-size: 1.35rem; font-weight: 780; color: var(--red-dark); margin-bottom: 6px; }
.workflow p { color: var(--muted); }
.studio-detail { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; }
.studio-detail h3 { font-size: 1.25rem; margin-bottom: 5px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.keys span { display: inline-flex; align-items: center; gap: 5px; font-size: .92rem; }
kbd { padding: 2px 6px; border: 1px solid #c8b8a4; border-radius: 4px; background: #faf2e4; }
.plans { padding-block: clamp(49px, 7.5vw, 92px); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { border-radius: 12px; border: 1px solid var(--line); padding: clamp(18px, 4vw, 38px); }
.plan-free { background: var(--paper-light); }
.plan-pro { color: #fff6e9; background: var(--red-dark); border-color: var(--red-dark); }
.plan-pro p + p { margin-top: 7px; }
.plan-contact { margin-top: 16px; }
.plan h3 { font: 750 1.18rem/1.3 system-ui, sans-serif; margin-bottom: 10px; }
.plan-number { font-size: clamp(2.15rem, 4.8vw, 3.9rem); font-weight: 790; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 11px; }
.plan-number span { font-size: .51em; }
.download { color: #fff6e9; background: var(--night); padding-block: clamp(45px, 7vw, 78px); }
.download-inner { display: grid; grid-template-columns: 1fr .66fr; align-items: center; gap: 28px; }
.download-meta { color: #e8b48a; font-weight: 700; margin-bottom: 10px; }
.download h2 { margin-bottom: 13px; }
.download p:not(.download-meta) { max-width: 44ch; color: #e1d2c5; }
.download-action { border-left: 1px solid #6a5546; padding-left: 30px; }
.download-action p { margin-block: 10px; }
.download-action #release-source { text-decoration: underline; text-underline-offset: .2em; }
.help { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(18px, 7vw, 95px); padding-block: clamp(48px, 8vw, 98px); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; list-style: none; position: relative; padding: 16px 36px 16px 1px; font-weight: 750; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 8px; color: var(--red); font-size: 1.3rem; top: 12px; }
.questions details[open] summary::after { content: "−"; }
.questions p { color: var(--muted); padding: 0 28px 16px 1px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner > :not(.brand) { color: var(--muted); font-size: .95rem; }
.footer-inner > a:last-child { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 890px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .hero-actions { gap: 11px 16px; }
  .demo { align-self: center; }
  .demo-caption { font-size: 1.55rem; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { min-height: 64px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .top-inner nav { order: 3; flex-basis: 100%; justify-content: space-between; padding-block: 5px 3px; font-size: .92rem; }
  .brand { font-size: 1.55rem; }
  .hero, .section-head, .download-inner, .help { grid-template-columns: 1fr; gap: 23px; }
  h1 { font-size: clamp(3.05rem, 11vw, 4.3rem); }
  .intro { max-width: 46ch; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li, .workflow li:first-child { padding: 16px 0; border: 0; }
  .workflow li + li { border-top: 1px solid #c8b8a4; }
  .plan-grid { gap: 9px; }
  .plan { padding: 16px 13px; }
  .download-action { border-left: 0; border-top: 1px solid #6a5546; padding: 10px 0 0; }
  .footer-inner { padding-block: 14px; flex-wrap: wrap; gap: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
