:root {
  --navy: #132c3e;
  --navy-2: #193649;
  --mint: #8de1c3;
  --teal: #126f63;
  --ink: #1f3342;
  --muted: #586d79;
  --paper: #f4f7f8;
  --line: #dce5e8;
  font-family: 'Manrope', 'Noto Sans Thai', sans-serif;
  color: var(--ink);
  background: var(--navy);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #46b99b; outline-offset: 4px; }
::selection { background: var(--mint); color: var(--navy); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: auto; padding-inline: 40px; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--mint); color: var(--navy); padding: 12px; }
.skip:focus { top: 10px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
/* <use> instances don't inherit presentation attributes from the symbol sprite. */
svg:not(.symbols) { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.desktop { display: inline; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 26px max(40px, calc((100vw - 1160px) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; white-space: nowrap; }
.brand img { border-radius: 9px; }
nav { display: flex; gap: 34px; font-size: 14px; color: #c5d4dd; }
nav a:hover, .site-footer a:hover { color: var(--mint); }
.nav-download { font-size: 14px; border: 1px solid #49616f; padding: 11px 18px; border-radius: 8px; white-space: nowrap; }
.nav-download:hover { background: #254252; }
.nav-download span { margin-left: 10px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; padding: 17px 26px; border-radius: 9px;
  transition: background .18s, box-shadow .18s;
}
.button.mint { color: var(--navy); background: var(--mint); }
.button.mint:hover { background: #b2efda; box-shadow: 0 6px 18px #0002; }
.button.dark { background: var(--navy); color: #fff; }
.button.dark:hover { background: #285269; }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .78fr 1.4fr; align-items: center; gap: 56px; padding-block: 56px 88px; }
.hero h1 { font-size: clamp(40px, 4.4vw, 62px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; margin: 0 0 22px; }
.hero h1 span { color: var(--mint); }
.hero-copy > p { color: #c4d3dc; font-size: 16px; line-height: 1.95; margin: 0 0 28px; }
.hero-copy .compat { font-size: 13px; color: #a8c1ce; margin-top: 16px; line-height: 1.8; }
.hero-shot { margin: 0; min-width: 0; }
.shot-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.shot-tabs button {
  border: 1px solid #3c5767; background: transparent; color: #c5d4dd;
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
}
.shot-tabs button[aria-selected="true"] { background: var(--mint); border-color: var(--mint); color: var(--navy); font-weight: 700; }
.app-window { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px #0004; }
.window-top { height: 32px; background: #e8eef0; display: flex; align-items: center; gap: 14px; padding: 0 14px; font-size: 12px; color: var(--muted); }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: #f58d83; }
.traffic i:nth-child(2) { background: #ebcb74; }
.traffic i:nth-child(3) { background: #7bc8ab; }
.app-window img { display: block; width: 100%; }
.hero-shot figcaption { font-size: 12px; color: #9fb7c3; margin-top: 12px; text-align: right; }

/* Tools */
.tools-section { padding-block: 90px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-intro h2, .notes-grid h2, .download-head h2, .faq h2 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; margin: 0;
}
.section-intro p { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 6px; text-align: right; }
.tool-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-groups article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.tool-groups article > svg { width: 30px; height: 30px; color: var(--teal); }
.tool-groups h3 { font-size: 19px; font-weight: 700; margin: 14px 0 16px; }
.tool-groups ul { list-style: none; margin: 0; padding: 0; }
.tool-groups li { font-size: 14px; line-height: 1.75; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }
.tool-groups li b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.extras { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 34px 0 0; padding: 0; font-size: 14px; color: var(--ink); }
.extras li { display: inline-flex; align-items: center; gap: 9px; }
.extras svg { width: 20px; height: 20px; color: var(--teal); }

/* Download */
.download-section { background: #fff; border-block: 1px solid var(--line); padding-block: 84px; }
.download-head { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.download-head img { border-radius: 20px; }
.download-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); }
.dl-card > svg { width: 28px; height: 28px; color: var(--navy); }
.dl-card h3 { font-size: 18px; margin: 14px 0 4px; }
.dl-card > p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.dl-card .button { width: 100%; padding: 15px 18px; }
.dl-card .meta { font-size: 12px; color: var(--muted); margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.dl-card.recommended { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: #eef8f4; }
.dl-card.recommended h3::after {
  content: 'แนะนำสำหรับเครื่องนี้'; display: inline-block; margin-left: 10px; vertical-align: 2px;
  font-size: 11px; font-weight: 700; color: var(--teal); background: #d4f1e6; padding: 3px 8px; border-radius: 999px;
}
.chip-help { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 52px; }
.install h3 { font-size: 18px; margin: 0 0 12px; }
.install ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.install ol b { color: var(--ink); }
.install-note { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 18px 20px; }
.install-note svg { flex: none; color: var(--teal); margin-top: 3px; }
.install-note p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); }
.install-note strong { color: var(--ink); }
.checksum { margin-top: 26px; font-size: 13px; color: var(--muted); }
.checksum summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.checksum dl { margin: 14px 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.checksum dt { color: var(--ink); }
.checksum dd { margin: 0; min-width: 0; }
.checksum code { font-size: 12px; word-break: break-all; }
.checksum a { color: var(--teal); text-decoration: underline; }

/* Notes */
.notes-section { background: var(--navy); color: #fff; padding-block: 84px; }
.notes-grid { display: grid; grid-template-columns: .8fr 1.5fr; gap: 60px; }
.notes-grid > div > svg { color: var(--mint); }
.notes-grid > div p { color: #b9ccd6; font-size: 15px; line-height: 1.9; }
.notes-grid ul { list-style: none; margin: 0; padding: 0; }
.notes-grid li { padding: 20px 0; border-top: 1px solid #2c4657; }
.notes-grid li:first-child { border-top: 0; padding-top: 4px; }
.notes-grid li strong { font-size: 17px; color: var(--mint); font-weight: 600; }
.notes-grid li p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: #c4d3dc; }

/* FAQ */
.faq { padding-block: 84px; display: grid; grid-template-columns: .8fr 1.5fr; gap: 60px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* Footer */
.site-footer { display: flex; align-items: center; gap: 24px; padding-block: 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .brand { font-size: 17px; color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer div { margin-left: auto; display: flex; gap: 24px; }

/* Responsive */
@media (max-width: 1020px) {
  nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 64px; }
  .tool-groups, .download-grid { grid-template-columns: 1fr; }
  .section-intro { flex-direction: column; align-items: flex-start; }
  .section-intro p { text-align: left; }
  .notes-grid, .faq { grid-template-columns: 1fr; gap: 28px; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .site-header { padding: 16px; }
  .brand { font-size: 18px; }
  .desktop { display: none; }
  .hero h1 { font-size: 36px; }
  .button.mint { width: 100%; }
  .shot-tabs { overflow-x: auto; }
  .hero-shot figcaption { text-align: left; }
  .tools-section, .download-section, .notes-section, .faq { padding-block: 56px; }
  .download-head { align-items: flex-start; }
  .download-head img { width: 64px; height: 64px; }
  .dl-card.recommended h3::after { display: block; margin: 6px 0 0; width: max-content; }
  .checksum dl { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer div { margin-left: 0; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Article pages (privacy, licenses) */
.article-header { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px max(16px, calc((100vw - 880px) / 2)); }
.article-header > a:last-child { font-size: 14px; color: #c5d4dd; }
.article-header > a:last-child:hover { color: var(--mint); }
.article-page { max-width: 880px; margin: 0 auto; padding: 48px 16px 80px; line-height: 1.9; font-size: 15px; }
.article-page h1 { font-size: 34px; font-weight: 600; margin: 0 0 8px; }
.article-page h2 { font-size: 20px; margin: 36px 0 6px; }
.article-page p, .article-page li { color: var(--muted); }
.article-page b { color: var(--ink); }
.article-page pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 340px; overflow: auto; }

p, li { text-wrap: pretty; }
