/* KlangEdu Phase 1 Web Design System (Mobile-first, Clean Full-Color Studio Contrast) */

@font-face {
  font-family: "KlangDisplay";
  src: url("./assets/fonts/Kanit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KlangDisplay";
  src: url("./assets/fonts/Kanit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KlangDisplay";
  src: url("./assets/fonts/Kanit-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KlangBody";
  src: url("./assets/fonts/Sarabun-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KlangBody";
  src: url("./assets/fonts/Sarabun-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KlangBody";
  src: url("./assets/fonts/Sarabun-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KlangBody";
  src: url("./assets/fonts/Sarabun-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #060d24;
  --navy-900: #0b1638;
  --navy-800: #13255e;
  --blue-700: #1e3a8a;
  --blue-600: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --emerald-700: #065f46;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --gold-400: #facc15;
  --gold-300: #fde047;
  --gold-100: #fef9c3;
  --rose-600: #e11d48;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 22px 48px rgba(0, 0, 0, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "KlangBody", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-900);
  background: var(--white);
  overflow-x: hidden;
}

main,
section,
header,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-grid > *,
.download-hero-grid > *,
.gallery-grid > *,
.cards-3 > *,
.pricing-grid > *,
.library-list > *,
.guide-steps > *,
.policy-grid > *,
.footer-grid > * {
  min-width: 0;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: "KlangDisplay", system-ui, -apple-system, sans-serif;
  margin-top: 0;
  line-height: 1.24;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* In-App Browser Guidance Banner */
.inapp-banner {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  color: var(--white);
  border-bottom: 2px solid var(--gold-300);
  padding: 10px 16px;
  font-size: 14.5px;
  position: relative;
  z-index: 60;
}
.inapp-banner[hidden] {
  display: none;
}
.inapp-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inapp-banner strong {
  color: var(--gold-300);
}
.inapp-close {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Sticky Top Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--blue-700);
  min-width: 0;
  flex-shrink: 1;
}
.brand-link small {
  display: none;
}
@media (min-width: 440px) {
  .brand-link small {
    display: inline;
  }
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: var(--gold-300);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-700);
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--blue-600);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 14px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 999px;
}
.btn-lg {
  min-height: 54px;
  padding: 14px 24px;
  font-size: 17.5px;
}
.btn-block {
  width: 100%;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--slate-900);
  border-color: var(--white);
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.35);
}
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.3);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-dark {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--slate-200);
}

/* Hero Studio Section */
.hero {
  background:
    radial-gradient(circle at 75% 35%, rgba(250, 204, 21, 0.18) 0%, transparent 52%),
    radial-gradient(circle at 20% 80%, rgba(29, 78, 216, 0.25) 0%, transparent 55%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-800) 58%, var(--navy-900) 100%);
  color: var(--white);
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-pill {
  display: inline-block;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: var(--white);
  border: 1.5px solid #fca5a5;
  border-radius: 999px;
  padding: 5px 16px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(29px, 5.4vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 12px;
}
.hero h1 .highlight {
  color: var(--gold-300);
}
.hero-lead {
  font-size: 16.5px;
  color: #e2e8f0;
  margin: 0 0 20px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chip {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e0f2fe;
}

/* Hero Zoomed Sheets Fan */
.hero-visual {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-sheet-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 330px;
}
.sheet-crop {
  overflow: hidden;
  border-radius: 14px;
  border: 3px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow-hero);
  cursor: pointer;
}
.sheet-crop img {
  max-width: none;
}
.hero-sheet-left {
  position: absolute;
  left: 0;
  top: 28px;
  width: 48%;
  height: 270px;
  transform: rotate(-4deg);
}
.hero-sheet-left img {
  width: 112%;
  margin-left: -6%;
  margin-top: -10px;
}
.hero-sheet-right {
  position: absolute;
  right: 0;
  top: 28px;
  width: 48%;
  height: 270px;
  transform: rotate(4deg);
}
.hero-sheet-right img {
  width: 112%;
  margin-left: -6%;
  margin-top: -10px;
}
.hero-sheet-center {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 60%;
  height: 310px;
  z-index: 3;
  border: 4px solid var(--gold-300);
}
.hero-sheet-center img {
  width: 110%;
  margin-left: -5%;
  margin-top: -12px;
}
.hero-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--emerald-600);
  color: var(--white);
  border: 2px solid #a7f3d0;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  max-width: 94%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 48px 0;
}
.section-soft {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.eyebrow {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 14px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.section-head p {
  margin: 0;
  color: var(--slate-600);
  font-size: 16px;
}

/* Interactive Real-Sheet Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.preview-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-600);
}
.preview-window {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  cursor: pointer;
}
.preview-window img {
  width: 112%;
  max-width: none;
  margin-left: -6%;
  margin-top: -12px;
}
.preview-window.zoom-key img {
  width: 215%;
  margin-left: -8%;
  margin-top: -28%;
}
.preview-zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--gold-300);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
}
.preview-body {
  padding: 16px 18px;
}
.preview-tag {
  display: inline-block;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.tag-blue {
  background: var(--blue-50);
  color: var(--blue-700);
}
.tag-green {
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.tag-rose {
  background: #fff1f2;
  color: #9f1239;
}
.preview-body h3 {
  font-size: 18.5px;
  margin-bottom: 4px;
}
.preview-body p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14.5px;
}

/* 3 Difference & Subject Cards */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  font-size: 30px;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--blue-700);
}
.feature-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 15px;
}
.subject-card {
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 2px solid var(--slate-200);
  background: var(--white);
  display: flex;
  gap: 14px;
  align-items: center;
}
.subject-card img {
  width: 78px;
  flex-shrink: 0;
}
.subject-card.math {
  background: var(--blue-50);
  border-color: #93c5fd;
}
.subject-card.sci {
  background: var(--emerald-50);
  border-color: #6ee7b7;
}
.subject-card.eng {
  background: #fff1f2;
  border-color: #fda4af;
}
.subject-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.subject-card p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-700);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.price-card.featured {
  background: linear-gradient(175deg, var(--navy-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  border: 3px solid var(--gold-400);
  box-shadow: 0 20px 42px rgba(29, 78, 216, 0.25);
}
.price-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.price-badge.hot {
  background: var(--gold-400);
  color: var(--slate-900);
}
.price-badge.sub {
  background: var(--slate-100);
  color: var(--slate-700);
}
.price-badge.pro {
  background: var(--emerald-100);
  color: var(--emerald-700);
}
.price-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}
.price-now {
  font-family: "KlangDisplay", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.price-card.featured .price-now {
  color: var(--gold-300);
}
.price-old {
  text-decoration: line-through;
  color: var(--slate-500);
  font-size: 16px;
}
.price-card.featured .price-old {
  color: #cbd5e1;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.price-list li::before {
  content: "✓ ";
  color: var(--emerald-600);
  font-weight: 800;
}
.price-card.featured .price-list li::before {
  color: var(--gold-300);
}
.single-subject-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.delivery-assurance-box {
  margin-top: 22px;
  background: var(--emerald-50);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.delivery-assurance-box h3 {
  font-size: 18px;
  color: var(--emerald-700);
  margin: 0;
}
.delivery-assurance-box p {
  margin: 0;
  font-size: 14.8px;
  color: var(--slate-700);
}

/* Native FAQ Accordion (<details>) */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--blue-600);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}
.faq-item summary {
  list-style: none;
  padding: 16px 18px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue-600);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 18px 16px;
  color: var(--slate-700);
  font-size: 15.5px;
  border-top: 1px dashed var(--slate-200);
  padding-top: 12px;
}

/* Delivery & Portal Pages (free.html, library.html, policy.html) */
.page-hero-compact {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 28px 0 32px;
  text-align: center;
}
.page-hero-compact h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero-compact p {
  margin: 0 auto;
  max-width: 680px;
  color: #cbd5e1;
}

.download-panel {
  background: var(--white);
  border: 2px solid var(--emerald-500);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.14);
  margin-top: -18px;
  position: relative;
  z-index: 4;
}
.download-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.sample-preview-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  height: 240px;
}
.sample-preview-thumb img {
  width: 108%;
  max-width: none;
  margin-left: -4%;
  margin-top: -10px;
}
@media (min-width: 760px) {
  .sample-preview-thumb {
    height: auto;
  }
  .sample-preview-thumb img {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}
.guide-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.guide-card h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
  color: var(--blue-700);
}
.guide-card ol,
.guide-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--slate-700);
  font-size: 14.8px;
}

/* Library Cards */
.paid-celebration {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 2px solid #a7f3d0;
}
.paid-celebration[hidden] {
  display: none;
}
.library-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--blue-50);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.library-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.module-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.module-card.ready {
  border-color: var(--emerald-500);
}
.module-card.locked {
  background: var(--slate-50);
  opacity: 0.92;
}
.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.status-pill {
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
}
.status-ready {
  background: var(--emerald-100);
  color: var(--emerald-700);
}
.status-soon {
  background: var(--gold-100);
  color: #854d0e;
}
.status-locked {
  background: var(--slate-200);
  color: var(--slate-700);
}

.line-retention-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: var(--white);
  border-radius: 22px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.line-retention-card h3 {
  font-size: 21px;
  color: var(--gold-300);
  margin: 0;
}

/* Policy Page */
.policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.policy-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.policy-card h2 {
  font-size: 21px;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.policy-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--slate-700);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 36px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.footer-title {
  font-family: "KlangDisplay", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: #93c5fd;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

/* Native <dialog> Modals */
dialog.klang-dialog {
  width: min(94vw, 680px);
  max-height: 90vh;
  border: none;
  border-radius: 20px;
  padding: 0;
  background: var(--white);
  color: var(--slate-900);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: auto;
}
dialog.klang-dialog::backdrop {
  background: rgba(6, 13, 36, 0.78);
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.dialog-close {
  background: var(--slate-100);
  color: var(--slate-900);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.dialog-body {
  padding: 18px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: var(--slate-900);
  color: var(--gold-300);
  border: 2px solid var(--gold-400);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "KlangDisplay", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  z-index: 90;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.toast[hidden] {
  display: none;
}

/* Responsive Desktop Breakpoints */
@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }
  .hero {
    padding: 54px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
  }
  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-sheet-stage {
    height: 395px;
  }
  .hero-sheet-left,
  .hero-sheet-right {
    height: 330px;
  }
  .hero-sheet-center {
    height: 372px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid .preview-card.wide {
    grid-column: span 2;
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 0.92fr 1.12fr 0.96fr;
  }
  .download-hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
  }
  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .library-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .library-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 1020px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid .preview-card.wide {
    grid-column: span 1;
  }
}
