/* K-Core approved identity (Calm Teal & Mint with Rounded Typography) elevated to an Apple Pro showcase; the shared support hub and Cellarune keep their styles. */
body.kcore {
  --bg: #F4F8F7;
  --bg-soft: #DCEFEB;
  --surface: rgba(252, 253, 252, 0.84);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --surface-strong: #DCEFEB;
  --topbar-bg: rgba(244, 248, 247, 0.82);
  --text: #102A2E;
  --muted: #426165;
  --primary: #146C72;
  --primary-strong: #0D4B50;
  --accent: #146C72;
  --border: rgba(20, 108, 114, 0.15);
  --border-hover: rgba(20, 108, 114, 0.36);
  --shadow: 0 20px 50px rgba(13, 43, 47, 0.07), 0 2px 10px rgba(13, 43, 47, 0.04);
  --shadow-hover: 0 28px 64px rgba(13, 43, 47, 0.13), 0 4px 16px rgba(13, 43, 47, 0.06);
  --radius-stage: 36px;
  --radius-card: 26px;
  --radius-pill: 980px;
  --emblem-stop-start: #1E7F95;
  --emblem-stop-end: #5ECFAD;
  --emblem-halo: rgba(94, 207, 173, 0.18);
  color-scheme: light;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 86% 6%, rgba(188, 232, 215, 0.58), transparent 40%),
    radial-gradient(circle at 10% 34%, rgba(20, 108, 114, 0.12), transparent 46%);
  background-attachment: scroll;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.kcore,
body.kcore * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body.kcore:lang(th),
body.kcore:lang(th) * {
  font-family: Thonburi, -apple-system, system-ui, sans-serif;
  letter-spacing: normal;
}

body.kcore :is(h1, h2, h3) {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.kcore:lang(th) :is(h1, h2, h3) {
  font-family: Thonburi, -apple-system, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.46;
}

body.kcore :is(p, li, td) {
  color: var(--muted);
}

body.kcore a {
  text-underline-offset: 0.22em;
}

body.kcore :is(a, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Sticky Frosted-Glass Apple Product Sub-Nav */
body.kcore .topbar {
  --topbar-scrolled-radius: 999px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-top: 12px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 12px 34px rgba(13, 43, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-align: left;
  transition: padding 0.22s ease, top 0.22s ease, border-radius 0.22s ease, box-shadow 0.22s ease;
}

body.kcore .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  text-decoration: none;
}

body.kcore .brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  background: #F4F8F7;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(13, 43, 47, 0.08);
  flex-shrink: 0;
  transition: width 0.22s ease, height 0.22s ease, transform 0.25s ease;
}

body.kcore .brand:hover .brand-mark {
  transform: scale(1.04);
}

body.kcore .brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body.kcore .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

body.kcore .brand strong {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

body.kcore .brand-description {
  max-height: 18px;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: max-height 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
}

body.kcore .topbar > .nav:not(.language-switch) {
  grid-row: 1;
  grid-column: 2;
  gap: 2px 4px;
  justify-content: center;
  padding-top: 0;
  border-top: 0;
}

body.kcore .topbar > .nav:not(.language-switch):last-child {
  grid-column: 2 / -1;
  justify-content: flex-end;
}

body.kcore .nav a {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.kcore .nav a:hover {
  background: rgba(20, 108, 114, 0.09);
  color: var(--text);
  text-decoration: none;
}

body.kcore .language-switch {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  background: rgba(20, 108, 114, 0.05);
  gap: 4px;
}

body.kcore .language-switch a {
  min-height: 26px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

body.kcore .language-switch [aria-current="page"] {
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

@keyframes kcore-topbar-shrink {
  to {
    top: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    row-gap: 2px;
    border-radius: var(--topbar-scrolled-radius);
    box-shadow: 0 10px 26px rgba(13, 43, 47, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

@keyframes kcore-brand-desc-hide {
  to {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@keyframes kcore-brand-mark-compact {
  to {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}

@supports (animation-timeline: scroll()) {
  body.kcore .topbar {
    animation: kcore-topbar-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 72px;
  }

  body.kcore .brand-description {
    animation: kcore-brand-desc-hide linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 48px;
  }

  body.kcore .topbar .brand-mark {
    animation: kcore-brand-mark-compact linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 72px;
  }
}

body.kcore :is(.pill, .eyebrow) {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  background: rgba(20, 108, 114, 0.07);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

body.kcore .pill {
  padding: 6px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Zone 1: Sculpted Apple Pro Hero Stage */
body.kcore .hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 48px;
  margin-top: 24px;
  padding: 60px 54px;
  border-radius: var(--radius-stage);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 18%, rgba(188, 232, 215, 0.72), transparent 54%),
    linear-gradient(145deg, rgba(252, 253, 252, 0.96) 0%, rgba(244, 248, 247, 0.9) 56%, rgba(220, 239, 235, 0.58) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.kcore .hero h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.35rem);
  line-height: 1.08;
  max-width: 14.5ch;
  margin: 6px 0 22px;
}

body.kcore:lang(th) .hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  line-height: 1.38;
  max-width: 15ch;
}

body.kcore .lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.82;
  max-width: 50ch;
}

body.kcore .brand-story {
  min-width: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.94), rgba(220, 239, 235, 0.78));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 28px 26px;
  margin-top: 0;
  text-align: left;
  box-shadow: 0 20px 44px rgba(13, 43, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.kcore .ring-stage {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
}

body.kcore .ring-motif {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 12px 22px rgba(20, 108, 114, 0.18));
}

body.kcore .brand-story-header {
  text-align: center;
  margin-bottom: 14px;
}

body.kcore .brand-story-header .eyebrow {
  margin-bottom: 8px;
}

body.kcore .brand-story h2 {
  font-size: 1.48rem;
  line-height: 1.28;
  margin: 0;
}

body.kcore .brand-story .check-list {
  margin: 14px 0 0;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

body.kcore .brand-story .check-list li {
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

body.kcore .brand-story .check-list li::before {
  content: "●";
  font-size: 0.65rem;
  top: 2px;
  color: var(--accent);
}

body.kcore :is(.hero-actions, .contact-actions) {
  gap: 14px;
  margin: 28px 0;
}

body.kcore .hero-actions {
  margin: 28px 0 0;
}

body.kcore .hero-meta,
body.kcore .contact-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

body.kcore .button {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

body.kcore .button-primary {
  background: #146C72;
  color: #FFFFFF;
  border: 1px solid #146C72;
  box-shadow: 0 10px 24px rgba(20, 108, 114, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.kcore .button-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.kcore .button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

body.kcore .button-primary:hover {
  background: #0D4B50;
  border-color: #0D4B50;
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgba(20, 108, 114, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.kcore .button-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text);
}

/* Section Layout & Bento Cards */
body.kcore .section {
  padding: 64px 0;
  border-top: 0;
}

body.kcore .section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

body.kcore .section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.16;
  margin: 0 0 12px;
}

body.kcore .section-heading p {
  font-size: 0.95rem;
  margin: 0;
}

body.kcore :is(.glass-card, .info-card, .contact-card, .notice-card, .feature-card, .faq-item) {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

body.kcore :is(.glass-card, .info-card, .contact-card, .feature-card, .legal-card):hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--surface-hover);
}

body.kcore :is(.card-grid, .legal-grid) {
  gap: 24px;
}

body.kcore :is(.info-card, .legal-card, .feature-card) {
  padding: 32px;
}

body.kcore .info-card h3,
body.kcore .legal-card h3,
body.kcore .feature-card h3 {
  font-size: 1.4rem;
  line-height: 1.32;
  margin: 0 0 12px;
}

body.kcore :is(.info-card p, .info-card li, .legal-card p, .feature-card p) {
  font-size: 0.93rem;
  line-height: 1.78;
}

/* Full-Stage Deep Teal-Obsidian Hardware & Feature Showcase (#screenshots + #features) */
body.kcore #screenshots {
  --text: #F2FAF8;
  --muted: #B9E2DA;
  --accent: #80CABD;
  --border: rgba(162, 216, 193, 0.2);
  --border-hover: rgba(162, 216, 193, 0.44);
  margin-top: 32px;
  padding: 72px 48px;
  border-radius: var(--radius-stage);
  border: 1px solid rgba(162, 216, 193, 0.24);
  background:
    radial-gradient(circle at 50% 16%, rgba(128, 202, 189, 0.18), transparent 54%),
    radial-gradient(circle at 14% 84%, rgba(20, 108, 114, 0.52), transparent 50%),
    linear-gradient(180deg, #06171A 0%, #0B262B 52%, #041114 100%);
  color: #F2FAF8;
  box-shadow: 0 32px 80px rgba(6, 20, 23, 0.26), inset 0 1px 0 rgba(242, 250, 248, 0.12);
}

body.kcore #screenshots .section-heading {
  text-align: center;
  margin: 0 auto 52px;
}

body.kcore #screenshots .section-heading h2 {
  color: #F2FAF8;
}

body.kcore #screenshots .section-heading p {
  color: #B9E2DA;
}

body.kcore #screenshots :is(.pill, .eyebrow) {
  background: rgba(128, 202, 189, 0.12);
  border-color: rgba(162, 216, 193, 0.34);
  color: #BCE8D7;
}

body.kcore .screenshot-grid {
  gap: 28px;
  margin-bottom: 56px;
  align-items: end;
}

body.kcore .screenshot-grid figure {
  background: linear-gradient(180deg, rgba(20, 108, 114, 0.36) 0%, rgba(5, 19, 22, 0.72) 100%);
  border: 1px solid rgba(162, 216, 193, 0.2);
  border-radius: 30px;
  padding: 28px 18px 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(242, 250, 248, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

body.kcore .screenshot-grid figure:nth-child(2) {
  transform: translateY(-14px);
  border-color: rgba(162, 216, 193, 0.42);
  background: linear-gradient(180deg, rgba(20, 108, 114, 0.54) 0%, rgba(8, 28, 33, 0.84) 100%);
}

body.kcore .screenshot-grid figure:hover {
  border-color: rgba(162, 216, 193, 0.54);
}

/* Vector Hardware Bezel */
body.kcore .screenshot-grid img {
  max-width: 242px;
  padding: 9px;
  background: #030A0C;
  border: 2px solid rgba(162, 216, 193, 0.36);
  border-radius: 36px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(242, 250, 248, 0.08);
}

body.kcore .screenshot-grid figcaption {
  color: #F2FAF8;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 18px;
}

body.kcore .features-stage {
  padding-top: 44px;
  border-top: 1px solid rgba(162, 216, 193, 0.16);
}

body.kcore .features-stage .section-heading {
  margin-bottom: 36px;
}

body.kcore #screenshots .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body.kcore #screenshots .feature-card {
  background: rgba(16, 62, 68, 0.42);
  border: 1px solid rgba(162, 216, 193, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(242, 250, 248, 0.08);
}

body.kcore #screenshots .feature-card:hover {
  background: rgba(20, 82, 89, 0.58);
  border-color: rgba(162, 216, 193, 0.44);
}

body.kcore #screenshots .feature-card h3 {
  color: #F2FAF8;
}

body.kcore #screenshots .feature-card p {
  color: #B9E2DA;
  margin: 0;
}

body.kcore .feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(128, 202, 189, 0.14);
  border: 1px solid rgba(162, 216, 193, 0.28);
  color: #BCE8D7;
  margin-bottom: 14px;
}

body.kcore .feature-badge svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tier Comparison Bento (#free-and-plus) */
body.kcore #free-and-plus .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.kcore #free-and-plus .info-card:nth-child(2) {
  --text: #F2FAF8;
  --muted: #D7F3E8;
  background:
    radial-gradient(circle at 88% 16%, rgba(188, 232, 215, 0.22), transparent 52%),
    linear-gradient(155deg, #146C72 0%, #072227 100%);
  border: 1px solid rgba(162, 216, 193, 0.4);
  box-shadow: 0 24px 56px rgba(13, 43, 47, 0.22), inset 0 1px 0 rgba(242, 250, 248, 0.18);
}

body.kcore #free-and-plus .info-card:nth-child(2) h3 {
  color: #F2FAF8;
}

body.kcore #free-and-plus .info-card:nth-child(2) :is(p, li) {
  color: #D7F3E8;
}

body.kcore #free-and-plus .info-card p {
  margin-top: 16px;
  margin-bottom: 0;
}

/* Editorial Guides Bento (#guides) */
body.kcore .guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.kcore .guide-grid .info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  text-decoration: none;
}

body.kcore .guide-grid h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.32;
}

body.kcore .guide-grid p {
  margin: 0;
}

body.kcore .guide-grid .back-link {
  margin-bottom: 0;
}

/* Zone 2: Support & Trust Drawer */
body.kcore .quick-links {
  padding: 36px 0 16px;
  border-top: 1px solid var(--border);
}

body.kcore .quick-links h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

body.kcore .mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.kcore .mini-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.kcore .mini-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

body.kcore .mini-card strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

body.kcore .mini-card small {
  font-size: 0.8rem;
  line-height: 1.55;
}

/* FAQ Accordion Drawer */
body.kcore .faq-list {
  gap: 14px;
}

body.kcore .faq-item {
  padding: 0 28px;
  border-radius: 22px;
}

body.kcore .faq-item[open] {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

body.kcore .faq-item summary {
  padding: 22px 0;
  gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

body.kcore .faq-item p {
  font-size: 0.94rem;
  line-height: 1.82;
  max-width: 82ch;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  animation: none;
}

body.kcore .faq-item p + p {
  border-top: 0;
  padding-top: 0;
}

/* Notice, Social Privacy & Contact Cards */
body.kcore .notice-card {
  padding: 30px 34px;
  background:
    radial-gradient(circle at 0% 50%, rgba(20, 108, 114, 0.08) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border-hover);
  border-left: 4px solid var(--accent);
  border-radius: 24px;
}

body.kcore .notice-card h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

body.kcore .notice-card p {
  font-size: 0.92rem;
  margin: 0 0 10px;
}

body.kcore .notice-card p:last-child {
  margin-bottom: 0;
}

body.kcore #social-privacy .info-card p {
  margin: 0 0 14px;
  max-width: 82ch;
}

body.kcore #social-privacy .info-card p:last-child {
  margin-bottom: 0;
}

body.kcore #contact .contact-card {
  padding: 40px 44px;
  background:
    radial-gradient(circle at 92% 20%, rgba(188, 232, 215, 0.55), transparent 55%),
    var(--surface);
}

body.kcore .contact-card {
  grid-template-columns: 1.45fr 1fr;
  gap: 36px;
  padding: 36px 40px;
}

body.kcore .contact-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* Developer Guides & Legal Views */
body.kcore .article {
  max-width: 820px;
  padding-top: 36px;
}

body.kcore .article-heading {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--border);
}

body.kcore .article-heading h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  line-height: 1.15;
}

body.kcore .article-heading .lead {
  max-width: 62ch;
}

body.kcore .article-copy {
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 46px 0;
}

body.kcore .article-copy h2 {
  font-size: 1.75rem;
  margin-top: 44px;
}

body.kcore .legal-hero {
  padding: 56px 0 24px;
  overflow-wrap: anywhere;
}

body.kcore .legal-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.16;
}

body.kcore .legal-copy {
  gap: 24px;
  padding-top: 0;
}

body.kcore .legal-section {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

body.kcore .legal-section h2 {
  font-size: 1.55rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

body.kcore .legal-section :is(p, li, td, th) {
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Footer */
body.kcore .footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: end;
  text-align: left;
  margin-top: 56px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
}

body.kcore .footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

body.kcore .footer-brand strong {
  display: block;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

body.kcore .footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 2px 0 0;
}

body.kcore .footer > p {
  margin: 0;
  font-size: 0.78rem;
}

body.kcore .footer-links {
  gap: 18px;
  font-size: 0.82rem;
}

body.kcore .skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 12px 16px;
  z-index: 200;
  background: var(--bg);
  border-radius: 12px;
}

body.kcore .skip-link:focus {
  top: 12px;
}

/* Dark Mode Palette (Calm Deep Teal-Obsidian) */
@media (prefers-color-scheme: dark) {
  body.kcore {
    --bg: #061417;
    --bg-soft: #0E2A2F;
    --surface: rgba(13, 36, 41, 0.74);
    --surface-hover: rgba(18, 47, 53, 0.88);
    --surface-strong: #0E2A2F;
    --topbar-bg: rgba(6, 20, 23, 0.8);
    --text: #F2FAF8;
    --muted: #A9CFC9;
    --accent: #80CABD;
    --border: rgba(128, 202, 189, 0.18);
    --border-hover: rgba(128, 202, 189, 0.44);
    --shadow: 0 24px 60px rgba(2, 8, 10, 0.5), 0 2px 12px rgba(2, 8, 10, 0.32);
    --shadow-hover: 0 32px 76px rgba(2, 8, 10, 0.65), 0 6px 20px rgba(2, 8, 10, 0.42);
    --emblem-stop-start: #4FA8BA;
    --emblem-stop-end: #7FE5C6;
    --emblem-halo: rgba(127, 229, 198, 0.14);
    color-scheme: dark;
    background-image:
      radial-gradient(circle at 86% 6%, rgba(20, 108, 114, 0.42), transparent 40%),
      radial-gradient(circle at 10% 34%, rgba(20, 108, 114, 0.26), transparent 46%);
  }

  body.kcore .topbar {
    box-shadow: 0 14px 38px rgba(2, 8, 10, 0.48), inset 0 1px 0 rgba(242, 250, 248, 0.1);
  }

  body.kcore .brand-mark {
    background: #061417;
    border-color: rgba(128, 202, 189, 0.24);
  }

  body.kcore .nav a:hover {
    background: rgba(128, 202, 189, 0.12);
  }

  body.kcore .language-switch {
    background: rgba(242, 250, 248, 0.05);
  }

  body.kcore .language-switch [aria-current="page"] {
    background: #80CABD;
    color: #061417;
  }

  body.kcore :is(.pill, .eyebrow) {
    background: rgba(128, 202, 189, 0.1);
  }

  body.kcore .hero {
    background:
      radial-gradient(circle at 86% 22%, rgba(128, 202, 189, 0.16), transparent 54%),
      linear-gradient(145deg, rgba(13, 39, 44, 0.92) 0%, rgba(6, 20, 23, 0.96) 58%, rgba(20, 108, 114, 0.42) 100%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(242, 250, 248, 0.1);
  }

  body.kcore .brand-story {
    background: radial-gradient(circle at 50% 24%, rgba(20, 82, 89, 0.56), rgba(8, 24, 28, 0.94));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(242, 250, 248, 0.12);
  }

  body.kcore .button-primary {
    background: #80CABD;
    color: #061417;
    border-color: #80CABD;
    box-shadow: 0 10px 26px rgba(128, 202, 189, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  body.kcore .button-primary:hover {
    background: #BCE8D7;
    border-color: #BCE8D7;
    color: #061417;
  }

  body.kcore .button-secondary {
    background: rgba(242, 250, 248, 0.06);
  }

  body.kcore #contact .contact-card {
    background:
      radial-gradient(circle at 92% 20%, rgba(20, 108, 114, 0.5), transparent 55%),
      var(--surface);
  }
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  body.kcore .topbar {
    --topbar-scrolled-radius: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    padding: 10px 18px;
    border-radius: 20px;
  }

  body.kcore .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  body.kcore .topbar > .nav:not(.language-switch),
  body.kcore .topbar > .nav:not(.language-switch):last-child {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  body.kcore .topbar > .nav:not(.language-switch)::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  body.kcore .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 48px 36px;
  }

  body.kcore #screenshots {
    padding: 56px 32px;
  }

  body.kcore .screenshot-grid figure:nth-child(2) {
    transform: none;
  }

  body.kcore #screenshots .feature-grid,
  body.kcore #free-and-plus .card-grid,
  body.kcore .guide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  body.kcore .contact-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  body.kcore .topbar {
    top: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    gap: 6px 10px;
    border-radius: 16px;
  }

  body.kcore .nav a {
    font-size: 0.76rem;
    padding: 4px 8px;
  }

  body.kcore .topbar > .nav:not(.language-switch) {
    gap: 4px 6px;
  }

  body.kcore .language-switch {
    gap: 4px;
    padding: 2px 4px;
  }

  body.kcore .language-switch a {
    padding: 3px 7px;
  }

  body.kcore .hero {
    padding: 36px 22px;
    border-radius: 28px;
    gap: 28px;
  }

  body.kcore .hero h1 {
    font-size: clamp(2.2rem, 8.6vw, 3rem);
    max-width: 14ch;
  }

  body.kcore:lang(th) .hero h1 {
    font-size: clamp(1.95rem, 7.8vw, 2.6rem);
  }

  body.kcore .brand-story {
    margin: 0;
    padding: 26px 20px;
    border-radius: 22px;
  }

  body.kcore .ring-stage {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
  }

  body.kcore .section {
    padding: 42px 0;
  }

  body.kcore #screenshots {
    padding: 44px 20px;
    border-radius: 28px;
  }

  body.kcore .section-heading h2 {
    font-size: 1.9rem;
  }

  body.kcore :is(.info-card, .legal-card, .feature-card, .legal-section) {
    padding: 24px 20px;
    border-radius: 22px;
  }

  body.kcore #contact .contact-card,
  body.kcore .contact-card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  body.kcore .faq-item {
    padding: 0 20px;
  }

  body.kcore .article-heading h1,
  body.kcore .legal-hero h1 {
    font-size: 2.25rem;
  }

  body.kcore .footer {
    grid-template-columns: 1fr;
  }

  body.kcore .footer-brand {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  body.kcore .language-switch {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  body.kcore .topbar > .nav:not(.language-switch) {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kcore *,
  body.kcore *::before,
  body.kcore *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.kcore:lang(th) :is(.button, .faq-item summary, .quick-links h2) {
  font-family: Thonburi, -apple-system, system-ui, sans-serif;
}

body.kcore :is(p, li, td) a:not(.button):not(.back-link) {
  text-decoration: underline;
}
