/* KrubKa marketing site. Palette mirrors assets/store/render.mjs. */

:root {
  --navy: #182A5A;
  --navy-deep: #111E42;
  --cream: #F7F5EF;
  --paper: #FFFFFF;
  --teal: #0B8277;
  --teal-dark: #07665E;
  --teal-pale: #D8F1EC;
  --amber: #F4B93E;
  --ink: #172033;
  --muted: #66748A;
  --line: #DDE3E3;
  --line-green: #06C755;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans Thai", Thonburi, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

.section-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { filter: brightness(1.06); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.9rem; }

/* Header */

.site-header {
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand img { border-radius: 8px; }

.header-nav { display: flex; align-items: center; gap: 1.25rem; }

.lang-toggle {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
}
.lang-toggle:hover { opacity: 1; }

/* Hero */

.hero { background: var(--navy); color: var(--cream); }

.hero-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 34rem;
}

.hero-cta { margin-top: 2rem; }
.hero-cta-note { margin-top: 0.6rem; font-size: 0.9rem; opacity: 0.75; }

.badges { margin-top: 2rem; }
.badges-note { font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.6rem; }
.badges-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.badges-center { justify-content: center; margin-top: 1.5rem; }

.hero-qr {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-qr img { border-radius: 8px; background: #fff; padding: 4px; }
.hero-qr p { font-size: 0.85rem; opacity: 0.75; max-width: 12rem; }

.hero-shot img {
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 360px;
  margin: 0 auto;
}

/* Steps */

.steps { background: var(--cream); }
.steps h2, .features h2, .pricing h2, .faq h2, .groups h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}
.steps h2 { margin-bottom: 2rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  counter-reset: step;
}

.steps-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  counter-increment: step;
}

.steps-grid li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.steps-grid h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps-grid p { color: var(--muted); font-size: 0.98rem; }

/* Features */

.features { background: var(--paper); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature-flip .feature-shot { order: 2; }

.feature-shot img {
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.18);
  max-width: 300px;
  margin: 0 auto;
}

.kicker {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.feature-copy h2 { margin-bottom: 0.75rem; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; max-width: 30rem; }

.illustrative-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Groups band */

.groups { background: var(--navy); color: var(--cream); }
.groups .section-inner { padding: 3.5rem 1.5rem; }
.groups h2 { margin-bottom: 1rem; }
.groups p { max-width: 42rem; opacity: 0.92; font-size: 1.1rem; }

/* Pricing */

.pricing { background: var(--cream); text-align: center; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: left;
}

.plan-pro { border: 2px solid var(--teal); position: relative; }

.plan h3 { font-size: 1.15rem; }

.price { font-size: 1.6rem; font-weight: 800; margin: 0.5rem 0 1rem; }
.plan-pro .price { color: var(--teal-dark); }

.plan ul { list-style: none; }

.plan li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.pricing-note { color: var(--muted); font-size: 0.85rem; margin-top: 1.25rem; }

/* FAQ */

.faq { background: var(--paper); }
.faq h2 { margin-bottom: 1.5rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style-position: outside;
}

.faq details p { margin-top: 0.6rem; color: var(--muted); max-width: 44rem; }

/* Footer */

.site-footer { background: var(--navy-deep); color: var(--cream); }
.site-footer .section-inner { padding: 2.5rem 1.5rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a { color: var(--cream); opacity: 0.85; text-decoration: none; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.trademarks { font-size: 0.75rem; opacity: 0.55; max-width: 44rem; }
.copyright { font-size: 0.8rem; opacity: 0.7; margin-top: 1rem; }

/* Responsive */

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-shot img { max-width: 300px; }
  .hero-qr { display: none; }
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-flip .feature-shot { order: 0; }
  .feature-shot img { max-width: 260px; }
  .section-inner { padding: 3rem 1.25rem; }
}
