@import url("/fonts/fonts.css?v=20260906");

:root {
  --red: #d7193f;
  --red-deep: #ad1231;
  --navy: #0b2d57;
  --navy-deep: #061b35;
  --teal: #0b8b98;
  --ink: #12314f;
  --muted: #5c7188;
  --line: #d6e2ec;
  --mist: #eff5f9;
  --white: #fff;
  --shadow-sm: 0 12px 30px rgba(11, 45, 87, .09);
  --shadow-md: 0 24px 60px rgba(11, 45, 87, .15);
  --shadow-lg: 0 34px 80px rgba(12, 41, 79, .18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-thai: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-thai);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button,
input,
select,
textarea { font-family: inherit; }

/* b and strong default to `bolder`, which resolves to 900 inside 700 text and
   gets faked, since IBM Plex Sans Thai stops at 700 */
b,
strong { font-weight: 700; }

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: #fff;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 22px rgba(12, 41, 79, .04);
  backdrop-filter: blur(16px);
}

.nav-in {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img:first-child { width: 70px; }
.brand img:last-child { width: 128px; }

.nav-links {
  margin-left: auto;
  display: flex;
}

.nav-links a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--red);
  background: #fff1f4;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.menu-btn { display: none; }

.btn,
button { min-height: 44px; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.nav-actions .menu-btn { display: none; }

.btn:hover { transform: translateY(-2px); }

.primary {
  border-color: var(--red);
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ed173f);
  box-shadow: 0 12px 24px rgba(215, 25, 63, .22);
}

.secondary {
  color: var(--navy);
  background: #fff;
}

:focus-visible {
  outline: 3px solid #21aab2;
  outline-offset: 3px;
}

.mobile-menu {
  display: none;
  padding: 10px 20px 20px;
  border-top: 1px solid var(--line);
}

.mobile-menu.open { display: grid; }

.mobile-menu a {
  padding: 11px;
  text-decoration: none;
}

section { padding: 88px 0; }
#selector,
#grade-map { scroll-margin-top: 86px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(118deg, rgba(255,255,255,.96) 0 41%, rgba(233,240,248,.9) 65%, rgba(245,249,252,.98) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 34%;
  right: -14%;
  bottom: -48%;
  height: 94%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 41, 79, .17), rgba(12, 41, 79, 0) 68%);
  transform: rotate(-6deg);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 45%;
  right: -12%;
  bottom: 11%;
  height: 72px;
  border: 1px solid rgba(12, 41, 79, .12);
  border-radius: 50%;
  box-shadow: 0 18px 0 rgba(215, 25, 63, .05), 0 -18px 0 rgba(12, 41, 79, .05);
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.eyebrow {
  color: var(--red);
  font: 800 .76rem/1.4 var(--font-latin);
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
}

h1 {
  margin: 16px 0 22px;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.2;
}

h1 span {
  display: block;
  color: var(--red);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.3;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

p { margin-top: 0; }

.lead {
  max-width: 650px;
  color: #405772;
  font-size: .95rem;
  line-height: 1.7;
}

.actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid rgba(12, 41, 79, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 14px rgba(12, 41, 79, .05);
  font-size: .84rem;
}

.machine {
  position: relative;
  height: 420px;
  perspective: 1000px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 28px rgba(12, 41, 79, .2));
}

.machine::before {
  content: "";
  position: absolute;
  z-index: 2;
  right: 18%;
  top: 54px;
  width: 42px;
  height: 190px;
  border: 1px solid #667281;
  border-radius: 15px;
  background: linear-gradient(90deg, #46515f, #fbfdff 34%, #7b8694 65%, #d9e0e7);
  box-shadow: inset 2px 0 3px #fff;
  transform: rotate(-4deg);
}

.barrel {
  position: absolute;
  z-index: 1;
  left: 4%;
  right: -7%;
  top: 80px;
  height: 150px;
  border: 1px solid #7b8998;
  border-radius: 75px 24px 24px 75px;
  background: linear-gradient(180deg, #fff 0, #9aa6b6 17%, #f8fbff 34%, #657181 55%, #dce4ec 76%, #8b96a6 100%);
  box-shadow: inset 0 4px 8px #fff, inset 0 -10px 20px rgba(20, 29, 42, .28), 0 35px 30px rgba(12, 41, 79, .25);
  transform: rotate(-4deg) translateZ(18px);
}

.barrel::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -31px;
  top: 10px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 44%, #152334 0 25%, #7d8997 27% 35%, #eff3f7 37% 45%, #606c7a 47% 57%, #f4f7fa 59% 66%, #293645 69%);
  box-shadow: 0 7px 16px rgba(0, 0, 0, .32);
}

.barrel::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 31%;
  top: -18px;
  width: 42px;
  height: 186px;
  border: 1px solid #667281;
  border-radius: 15px;
  background: linear-gradient(90deg, #46515f, #fbfdff 34%, #7b8694 65%, #d9e0e7);
  box-shadow: inset 2px 0 3px #fff;
}

.screw {
  position: absolute;
  z-index: 3;
  left: 7%;
  right: 3%;
  top: 177px;
  height: 62px;
  border: 4px solid #5c6774;
  border-radius: 32px;
  background: repeating-linear-gradient(108deg, #263444 0 11px, #f3f6f8 12px 23px, #74808c 24px 32px);
  box-shadow: inset 0 7px 8px rgba(255, 255, 255, .78), 0 14px 19px rgba(12, 41, 79, .3);
  transform: rotate(6deg) translateZ(34px);
}

.pellets { position: relative; z-index: 4; filter: drop-shadow(0 12px 14px rgba(12, 41, 79, .16)); }

.pellets i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, #dce3e9 58%, #9ba8b5);
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.86), 3px 7px 10px rgba(50, 67, 85, .28);
}

.pellets i:nth-child(1) { left: 8%; top: 250px; }
.pellets i:nth-child(2) { left: 18%; top: 292px; background: #ef4358; }
.pellets i:nth-child(3) { left: 28%; top: 250px; }
.pellets i:nth-child(4) { left: 38%; top: 310px; background: #2d5f99; }
.pellets i:nth-child(5) { left: 49%; top: 267px; }
.pellets i:nth-child(6) { left: 61%; top: 325px; }

.pellets i::before,
.pellets i::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.8), 3px 7px 10px rgba(50,67,85,.24);
}

.pellets i::before { left: 24px; top: 18px; width: 13px; height: 13px; background: radial-gradient(circle at 30% 24%,#fff3c8,#e8ae45 58%,#95631c); }
.pellets i::after { left: -14px; top: 35px; width: 21px; height: 21px; background: radial-gradient(circle at 30% 24%,#d7f3f5,#56b9c0 58%,#1b6b72); }
.pellets i:nth-child(even)::before { background: radial-gradient(circle at 30% 24%,#ffc3c9,#e72b46 56%,#8d0a20); }
.pellets i:nth-child(3n)::after { background: radial-gradient(circle at 30% 24%,#c2dcff,#3c7fcf 58%,#123f75); }

.technical-tag {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 8px;
  padding: 13px 17px;
  border-left: 5px solid var(--red);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.section-head {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-head > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.02rem;
}

#selector {
  position: relative;
  background: linear-gradient(180deg, #fff 0, #f7fafd 100%);
}

.selector-shell {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(260px, 1.35fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(12, 41, 79, .12);
  border-radius: var(--radius-lg);
  background: rgba(242, 247, 251, .88);
  box-shadow: var(--shadow-lg);
}

.selector-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.field {
  position: relative;
  min-height: 290px;
  padding: 72px 14px 18px;
  overflow: hidden;
  border: 1px solid #d4e0eb;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(33, 170, 178, .1), transparent 24%),
    linear-gradient(160deg, #fff 0, #f9fbfd 100%);
  box-shadow: 0 14px 28px rgba(12, 41, 79, .07), inset 0 1px 0 #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.field:hover,
.field:focus-within {
  z-index: 2;
  border-color: rgba(11, 141, 152, .55);
  box-shadow: 0 22px 42px rgba(12, 41, 79, .13), 0 0 0 4px rgba(11, 141, 152, .07);
  transform: translateY(-5px);
}

.field::before {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--navy);
  background: linear-gradient(145deg, #fff, #dce8f2);
  box-shadow: 6px 8px 16px rgba(12, 41, 79, .16), inset 1px 1px 0 #fff;
  font: 800 1.35rem/1 var(--font-latin);
}

.field::after { position:absolute; right:14px; top:16px; color:#8190a5; font:800 .68rem/1 var(--font-latin); letter-spacing:.08em; }
.field:nth-child(1)::before { content: "▣"; }
.field:nth-child(2)::before { content: "◇"; color:#0a7781; background:linear-gradient(145deg,#fff,#d9f1f1); }
.field:nth-child(3)::before { content: "✦"; color:var(--red); background:linear-gradient(145deg,#fff,#f7dde3); }
.field:nth-child(4)::before { content: "◴"; color:#9a6513; background:linear-gradient(145deg,#fff,#f7ead0); }
.field:nth-child(1)::after { content: "01"; }
.field:nth-child(2)::after { content: "02"; }
.field:nth-child(3)::after { content: "03"; }
.field:nth-child(4)::after { content: "04"; }

.field label {
  display: block;
  min-height: 56px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.field label::after {
  display: block;
  margin-top: 5px;
  color: #8091a4;
  font: 700 .66rem/1.2 var(--font-latin);
  letter-spacing: .12em;
}

.field:nth-child(1) label::after { content: "PROCESS"; }
.field:nth-child(2) label::after { content: "RESIN / MATERIAL"; }
.field:nth-child(3) label::after { content: "OBJECTIVE"; }
.field:nth-child(4) label::after { content: "CONDITION"; }

.field select {
  width: 100%;
  min-height: 52px;
  padding: 10px 34px 10px 12px;
  border: 1px solid #c8d6e3;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: .93rem;
  line-height: 1.5;
}

.selector-form > .btn {
  grid-column: 1 / -1;
  min-height: 54px;
  margin-top: 2px;
  border-radius: 14px;
}

.result {
  position: relative;
  min-height: 354px;
  padding: 28px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(155deg, var(--navy-deep) 0, var(--navy) 62%, #087f8d 120%);
  box-shadow: 0 24px 44px rgba(7, 28, 56, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.result::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border: 22px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .035);
}

.result > * { position: relative; z-index: 1; }

.result .eyebrow { color: #71d4d9; }

.result h3 {
  margin: 12px 0 10px;
  color: #fff;
  font: 700 clamp(1.45rem, 3vw, 1.9rem)/1.35 var(--font-thai);
  letter-spacing: 0;
}

.result.has-grade h3 {
  font: 800 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--font-latin);
  letter-spacing: -.035em;
}

.result p,
.result li { color: #dbe8f4; }

.result a { color: #fff; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.result-actions .btn {
  border-color: rgba(255, 255, 255, .72);
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}

#grade-map {
  position: relative;
  background:
    radial-gradient(circle at 8% 10%, rgba(11, 141, 152, .07), transparent 28%),
    linear-gradient(180deg, #eff5fa 0, #f8fafc 100%) !important;
}

.family {
  position: relative;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(12, 41, 79, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-sm);
}

.family-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.family-head h3 {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.55rem;
  letter-spacing: .01em;
}

.family-head p {
  margin: 0;
  color: var(--muted);
  font: 700 .82rem/1.4 var(--font-latin);
  letter-spacing: .08em;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.family.specific .grade-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.grade-card {
  --card-accent: var(--red);
  position: relative;
  min-width: 0;
  min-height: 304px;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 18px;
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-top: 4px solid var(--card-accent);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 3%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 34%),
    linear-gradient(150deg, #fff 0, #f7fafc 100%);
  box-shadow: 0 16px 30px rgba(12, 41, 79, .09), inset 0 1px 0 #fff;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.grade-card::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -54px;
  width: 126px;
  height: 126px;
  border: 18px solid color-mix(in srgb, var(--card-accent) 7%, transparent);
  border-radius: 50%;
}

.grade-card:hover,
.grade-card:focus-within {
  z-index: 2;
  border-color: color-mix(in srgb, var(--card-accent) 45%, #dbe5ee);
  box-shadow: 0 28px 54px rgba(12, 41, 79, .17), 0 12px 22px color-mix(in srgb, var(--card-accent) 10%, transparent);
  transform: translateY(-9px) rotateX(2deg) rotateY(-1deg);
}

.family.high .grade-card { --card-accent: var(--red); }
.family.general .grade-card { --card-accent: var(--navy); }
.family.specific .grade-card { --card-accent: var(--teal); }

.grade-name {
  position: relative;
  color: var(--card-accent);
  font: 850 clamp(2rem, 3vw, 2.65rem)/1 var(--font-latin);
  letter-spacing: -.04em;
}

.grade-card p {
  position: relative;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.grade-card p strong {
  color: var(--ink);
  font-weight: 600;
}

.grade-card p:nth-of-type(2) {
  align-self: flex-start;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 8%, #fff);
  font: 750 .83rem/1.3 var(--font-latin);
}

.grade-card footer {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.grade-card footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--card-accent);
  font-weight: 700;
  text-decoration: none;
}

.compare-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  color: var(--muted);
  cursor: pointer;
}

.compare-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.seo-grid,
.detail-grid,
.article-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.seo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fafdff 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.spec {
  padding: 22px;
  background: linear-gradient(150deg, #fff 0%, #fbfdff 100%);
}

.spec dt {
  color: var(--red);
  font: 800 .72rem/1.4 var(--font-latin);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.spec dd { margin: 7px 0 0; }

.notice {
  padding: 18px;
  border-left: 5px solid #d39a19;
  border-radius: 8px 14px 14px 8px;
  background: #fff7df;
}

.breadcrumb {
  padding: 22px 0;
  color: var(--muted);
  font-size: .88rem;
}

.grade-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 82px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 24%, rgba(215, 25, 63, .115), transparent 25%),
    radial-gradient(circle at 98% 86%, rgba(11, 139, 152, .09), transparent 28%),
    linear-gradient(125deg, #fbfcfe 0, #e9f1f7 58%, #edf4f8 100%);
}

.grade-hero::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -72%;
  width: 52%;
  aspect-ratio: 1;
  border: 28px solid rgba(11, 45, 87, .055);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(215, 25, 63, .032),
    0 28px 70px rgba(11, 45, 87, .08);
}

.grade-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 56px;
}

.grade-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 16px 0 26px;
  color: var(--navy);
  font: 850 clamp(4.2rem, 9vw, 7.6rem)/.9 var(--font-latin);
  letter-spacing: -.055em;
}

.grade-hero h1 span {
  position: relative;
  display: inline-block;
  padding-top: 18px;
  color: var(--red);
  font: 700 clamp(1.7rem, 3.2vw, 2.55rem)/1.4 var(--font-thai);
  letter-spacing: 0;
}

.grade-hero h1 span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: var(--red);
}

.grade-summary > div:first-child > p {
  max-width: 690px;
  color: #405772;
  font-size: 1rem;
  line-height: 1.7;
}

.temperature {
  position: relative;
  padding: 28px 0 14px;
  color: var(--red);
  text-align: right;
  font: 850 clamp(3rem, 6vw, 5.3rem)/1 var(--font-latin);
  letter-spacing: -.012em;
  text-shadow: 0 12px 28px rgba(215, 25, 63, .14);
}

.temperature small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font: 800 .7rem/1.3 var(--font-latin);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.temperature small[style] {
  font-family: var(--font-latin) !important;
}

.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.cta-band {
  color: #fff;
  background:
    radial-gradient(circle at 82% 30%, rgba(11, 141, 152, .3), transparent 24%),
    linear-gradient(120deg, var(--navy-deep), var(--navy));
}

.cta-band h2 { color: #fff; }

.footer {
  padding: 46px 0;
  color: #d7e0e9;
  background: #0d1b2d;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer h3 { color: #fff; }
.footer a { display: block; margin: 6px 0; }

.compare-fab {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 120px);
  transition: transform .2s ease;
}

.compare-fab.show { transform: translate(-50%, 0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 22, 43, .82);
}

.modal-backdrop.open { display: grid; }

.dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dialog-head h2 { margin: 0; font-size: 1.6rem; }
.dialog-body { padding: 20px; }

.close {
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.compare-table { width: 100%; border-collapse: collapse; }

.compare-table th,
.compare-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px;
  border: 1px solid #b9c8d7;
  border-radius: 8px;
}

.full { grid-column: 1 / -1; }
.disabled { opacity: .55; cursor: not-allowed; }
.mobile-cards { display: none; }

@media (max-width: 1100px) {
  .grade-grid,
  .family.specific .grade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .selector-shell { grid-template-columns: 1fr; }
  .result { min-height: 260px; }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .secondary { display: none; }

  .nav-actions .menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 58px 0 34px;
  }

  .machine {
    width: 100%;
    height: 390px;
    margin-top: -12px;
    opacity: .78;
  }

  .selector-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { min-height: 250px; }
  .grade-summary { grid-template-columns: 1fr; gap: 22px; }
  .temperature { text-align: left; }
  .seo-grid,
  .article-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .grade-grid,
  .family.specific .grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1180px); }
  section { padding: 62px 0; }

  .brand img:first-child { width: 54px; }
  .brand img:last-child { width: 105px; }

  .hero-grid {
    min-height: auto;
    padding: 38px 0 18px;
  }

  .hero h1 { margin: 12px 0 16px; font-size: clamp(1.85rem, 9vw, 2.15rem); line-height: 1.2; letter-spacing: -.01em; }
  .hero-copy .lead { font-size: .95rem; line-height: 1.68; }
  .chips { margin-top: 17px; }
  .chips .chip:nth-child(n+4) { display: none; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .hero .actions .btn { width: 100%; padding-inline: 10px; }

  .machine {
    width: 128%;
    height: 300px;
    margin: -2px 0 -14px -14%;
    opacity: .9;
    transform: scale(.78);
    transform-origin: top center;
  }

  .pellets { transform: translateY(-58px); }

  .technical-tag { display: none; }

  .selector-shell { padding: 10px; border-radius: 22px; }
  .selector-form { grid-template-columns: 1fr; }

  .field {
    min-height: 0;
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    gap: 0 12px;
    padding: 16px;
  }

  .field::before { left: 16px; right: auto; top: 16px; width: 54px; height: 54px; border-radius: 17px; font-size: 1.35rem; }
  .field::after { right: 12px; top: 12px; }
  .field label { grid-column: 2; grid-row: 1; min-height: 0; margin: 0; padding-right: 34px; }
  .field select { grid-column: 1 / -1; margin-top: 14px; }
  .result { min-height: 290px; }

  .family { padding: 18px 14px; }
  .family-head { display: block; }
  .family-head p { margin-top: 6px; }

  .grade-grid,
  .family.specific .grade-grid,
  .detail-grid,
  .spec-list,
  .seo-grid,
  .article-links,
  .foot-grid,
  .lead-form { grid-template-columns: 1fr; }

  .grade-card { min-height: 280px; }
  .grade-hero { padding: 42px 0 48px; }
  .grade-summary { gap: 14px; }
  .grade-hero h1 { margin: 10px 0 18px; font-size: clamp(3.5rem, 17vw, 4.4rem); gap: 10px; }
  .grade-hero h1 span { padding-top: 13px; font-size: clamp(1.3rem, 6.5vw, 1.55rem); line-height: 1.35; }
  .grade-summary > div:first-child > p { font-size: .96rem; line-height: 1.65; }
  .grade-hero .actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .grade-hero .actions .btn { width: 100%; padding-inline: 9px; }
  .temperature { padding-top: 14px; font-size: clamp(2.25rem, 11vw, 3rem); text-shadow: 0 9px 20px rgba(215,25,63,.12); }

  .compare-table { display: none; }
  .mobile-cards { display: grid; gap: 14px; }

  .compare-mobile {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .compare-mobile h3 {
    color: var(--red);
    font: 800 1.6rem/1.2 var(--font-latin);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .grade-card:hover,
  .field:hover,
  .btn:hover { transform: none; }
}

/* Customer-first Grade Explorer */
.grade-explorer {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr);
  gap: 22px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(155,173,197,.55);
  border-radius: 28px;
  background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(241,246,251,.96));
  box-shadow: 0 24px 60px rgba(10,39,78,.13), inset 0 1px 0 #fff;
}

.explorer-controls {
  min-width: 0;
  padding: 10px;
}

.explorer-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #eaf0f6;
}

.explorer-tab {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--navy);
  font: 700 .92rem/1.35 var(--font-thai);
  cursor: pointer;
  transition: transform .22s ease,box-shadow .22s ease,background .22s ease;
}

.explorer-tab:hover,
.explorer-tab:focus-visible { background: rgba(255,255,255,.75); }

.explorer-tab.active {
  border-color: rgba(206,20,56,.26);
  background: linear-gradient(145deg,#fff,#f7fafc);
  color: var(--red);
  box-shadow: 0 8px 18px rgba(15,47,87,.12), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.explorer-filter {
  min-height: 210px;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid rgba(155,173,197,.48);
  border-radius: 20px;
  background: #fff;
}

.explorer-filter h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.45;
}

.explorer-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.explorer-choice {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #c7d3e1;
  border-radius: 14px;
  background: linear-gradient(145deg,#fff,#f3f7fa);
  color: var(--navy);
  font: 650 .94rem/1.4 var(--font-thai);
  box-shadow: 0 5px 12px rgba(16,49,86,.06);
  cursor: pointer;
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.explorer-choice:hover,
.explorer-choice:focus-visible { border-color: var(--red); transform: translateY(-1px); }

.explorer-choice.active {
  border-color: var(--red);
  background: linear-gradient(145deg,#df1640,#b80e31);
  color: #fff;
  box-shadow: 0 10px 22px rgba(194,18,53,.23), inset 0 1px 0 rgba(255,255,255,.32);
}

.explorer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 12px;
}

.explorer-summary span {
  padding: 7px 10px;
  border-radius: 10px;
  background: #eaf1f8;
  color: var(--navy);
  font-size: .86rem;
}

.explorer-summary button {
  min-height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--red);
  font: 700 .86rem var(--font-thai);
  cursor: pointer;
}

.grade-explorer .result {
  min-height: 100%;
  position: sticky;
  top: 88px;
}

.result-reasons { margin: 12px 0 16px; padding-left: 20px; }
.result-reasons li { margin: 6px 0; }

.explorer-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 24px;
}

.family.is-enhanced-hidden { display: none; }

.explorer-grid .grade-card {
  transition: opacity .24s ease,filter .24s ease,box-shadow .24s ease,border-color .24s ease,transform .24s ease;
}

.explorer-grid .grade-card.tier-main { --card-accent: var(--navy); }
.explorer-grid .grade-card.tier-value { --card-accent: var(--teal); }
.explorer-grid .grade-card.tier-pending { --card-accent: #8a6a22; }

.explorer-grid .grade-card.is-match {
  border-color: rgba(0,126,151,.55);
  box-shadow: 0 18px 38px rgba(10,71,94,.16), inset 0 3px 0 var(--teal);
}

.explorer-grid .grade-card.is-secondary { opacity: .55; filter: saturate(.7); }
.explorer-grid .grade-card.is-secondary:hover,
.explorer-grid .grade-card.is-secondary:focus-within { opacity: 1; filter: none; }

.grade-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.grade-quick span {
  padding: 7px 11px;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  background: #f5f8fb;
  color: var(--navy);
  font: 700 .76rem/1.35 var(--font-latin),var(--font-thai);
  letter-spacing: .012em;
}

.grade-quick .yes { border-color: rgba(0,126,151,.34); background: #e9f8f7; color: #00687d; }
.grade-quick .no { border-color: rgba(206,20,56,.25); background: #fff0f3; color: #a70d2d; }
.grade-quick .pending { background: #fff6df; color: #7a5200; }

.grade-disclosure {
  margin: 4px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grade-disclosure summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.grade-disclosure p { margin: 8px 0; font-size: .86rem; line-height: 1.55; }
.grade-disclosure a { display: inline-block; margin: 6px 0 14px; font-weight: 700; }
.compare-intro { margin: 0 0 14px; color: var(--muted); }

.compare-notice {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 110;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 28px rgba(3,27,58,.25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease,transform .2s ease;
}
.compare-notice.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .barrel { right: 0; }
  .grade-explorer { grid-template-columns: 1fr; }
  .grade-explorer .result { position: static; min-height: 250px; }
  .explorer-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .explorer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .grade-explorer { padding: 9px; border-radius: 22px; }
  .explorer-controls { padding: 3px; }
  .explorer-tabs {
    position: sticky;
    top: 68px;
    z-index: 8;
    gap: 6px;
    padding: 6px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(8,37,73,.12);
  }
  .explorer-tab { min-height: 46px; padding: 7px 5px; font-size: .82rem; }
  .explorer-filter { min-height: 0; margin-top: 10px; padding: 16px 13px; }
  .explorer-filter h3 { font-size: 1rem; }
  .explorer-choices { gap: 7px; }
  .explorer-choice { min-height: 44px; padding: 9px 12px; font-size: .86rem; }
  .explorer-summary { margin: 10px 2px 0; }
  .grade-explorer .result { order: 2; min-height: 0; }
  .explorer-grid { grid-template-columns: 1fr; gap: 15px; }
  .explorer-grid .grade-card { min-height: 0; }
  .explorer-grid .grade-card.is-secondary { opacity: .68; }
  .grade-card footer { gap: 10px; }
  .compare-notice { left: 14px; right: 14px; bottom: 82px; max-width: none; }
}

/* CTA hierarchy — red = quotation, navy = TDS, green = LINE, ghost = internal nav */
.btn.line {
  border-color: #05a648;
  color: #fff;
  background: linear-gradient(135deg, #06c755, #04a746);
  box-shadow: 0 12px 24px -8px rgba(6, 199, 85, .5);
}

.btn.tds {
  border-color: var(--navy);
  color: #fff;
  background: linear-gradient(135deg, #154a7f, var(--navy));
  box-shadow: 0 12px 24px -10px rgba(11, 45, 87, .5);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--navy);
  background: linear-gradient(#fff, #eef4f9);
  box-shadow: 0 3px 0 #dce6ee;
}

.cta-band .btn.ghost,
.result .btn.ghost,
.pp-dark .btn.ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.cta-band .btn.line,
.pp-dark .btn.line { border-color: rgba(255, 255, 255, .35); }

.dialog-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
}

/* Navbar dropdown — material guides that sit outside the grade list */
.nav-drop { position: relative; display: flex; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nav-drop-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.nav-drop.open .nav-drop-btn::after { transform: translateY(1px) rotate(225deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 95;
  display: none;
  min-width: 248px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 52px -28px rgba(11, 45, 87, .5);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: grid; }

.nav-drop-menu a {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 650;
}

.nav-drop-menu a small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.nav-drop-menu a:hover,
.nav-drop-menu a:focus-visible { background: var(--mist); }

.mobile-group {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-group > span {
  display: block;
  padding: 6px 11px 2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.mobile-menu .mobile-group a { padding-left: 24px; }

/* LINE mark, inlined rather than pulling an icon library onto twenty pages */
.line-ico { flex: 0 0 auto; }

/* Free-sample request — sits beside the quotation button, orange so it reads as
   the lower-commitment option next to the red quote action */
.btn.sample {
  border-color: #e06100;
  color: #fff;
  background: linear-gradient(135deg, #ff9d30, #f36b00);
  box-shadow: 0 12px 24px -10px rgba(243, 107, 0, .55);
}

.cta-band .btn.sample,
.pp-dark .btn.sample { border-color: rgba(255, 255, 255, .35); }

.btn.sample:hover { transform: translateY(-2px); }

/* IBM Plex Sans Thai ships 400-700 only. Anything heavier is faked by the
   browser and looks like a different typeface, so the footer heading is pinned
   to a real weight and one size on every page. */
.footer h3 {
  font-family: var(--font-thai);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
