:root {
  --orange: #ff8a00;
  --orange-dark: #e27300;

  /* warna brand */
  --navy: #041833;      /* biru dongker ala logo */
  --blue: #246bfd;      /* biru utama */
  --blue-soft: #e5f0ff; /* biru muda background */

  --white: #ffffff;
  --gray: #6b7280;
  --bg: #f4f7ff;
  --radius-card: 20px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: #111827;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #12389c 45%, var(--blue) 100%);
  color: var(--white);
  padding: 2.8rem 0 3.6rem;
}

/* glow lembut di sisi kiri supaya logo & teks terbaca */
.hero::before {
  content: "";
  position: absolute;
  inset: -35% 35% auto -25%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative; /* supaya di atas ::before */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-left {
  max-width: 520px;
}

.brand-row {
   display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;

  padding: 0.35rem 0.9rem;
  border-radius: 999px;

  background: #ffffff;      /* pill putih bersih */
  border: 1px solid #e5e7eb;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}

.brand-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

/* logo image di hero */
.brand-text img {
  height: 30px;
  width: auto;
  vertical-align: middle;

  filter: none !important;      /* pastikan tidak ada filter */
  box-shadow: none !important;  /* pastikan tidak ada shadow */
}


.hero-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-sub {
  font-size: 0.96rem;
  color: #e5e7eb;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* tombol utama: orange */
.btn-primary {
  background: var(--orange);
  color: #111827;
  border: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

/* tombol outline: putih-biru */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

.hero-social {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.6rem;
}

.hero-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #e5e7eb;
  transition: background 0.2s ease, transform 0.15s ease, color 0.15s ease;
}

.hero-social a:hover {
  background: var(--orange);
  color: #111827;
  transform: translateY(-1px);
}

.hero-right {
  position: relative;
  justify-self: stretch;
}

.hero-image-card {
  background: linear-gradient(145deg, #1d4ed8, var(--blue));
  border-radius: 28px;
  padding: 0.9rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.5);
}

.hero-image-card img {
  border-radius: 22px;
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: center;   /* <--- ini kuncinya */
  background: var(--white);
}


.hero-badge {
  position: absolute;
  bottom: -14px;
  left: 14%;
  transform: translateY(100%);
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* ================= GENERIC SECTIONS ================= */

.section {
  padding: 3.5rem 0 3.2rem;
  background: #f8fafc;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 0.9rem;
  color: var(--gray);
}

/* === Section "Apa Itu Klokin?" (id=tentang) jadi biru dengan teks putih === */
#tentang.section {
  background: linear-gradient(180deg, var(--blue) 0%, #1d4ed8 100%);
}

#tentang .section-title {
  color: var(--white);
}

#tentang .section-sub {
  color: #e5edff;
  max-width: 680px;
}

/* ================= FEATURES ================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.feature-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.84rem;
  color: var(--gray);
}

/* ================= CTA PANEL ================= */

.cta-panel {
  margin-top: 2.4rem;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--blue), var(--navy));
  padding: 1.4rem 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  color: #e5e7eb;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.4);
}

.cta-text-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cta-text-block p {
  font-size: 0.85rem;
}

.btn-light {
  background: var(--orange);
  color: #111827;
  padding-inline: 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
  border: none;
}

.btn-light:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ================= DOWNLOAD ================= */

/* ================= DOWNLOAD ================= */

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: stretch;
  margin-top: 0.6rem;
}

.download-media,
.download-content {
  height: 100%;
}

.download-image-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
  height: 100%;
}

.download-image-card img {
  border-radius: 18px;
  height: 260px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.download-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  height: 100%;
}

.download-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.download-title span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.25rem;
}

.download-text {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
}

.download-buttons {
  margin-top: 1.6rem; /* bikin tombol agak kebawah */
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}


.store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font-size: 0.83rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.store-btn span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-text small {
  font-size: 0.64rem;
  opacity: 0.8;
}

.store-btn-dark {
  background: #111827;
  color: var(--white);
  border: 1px solid #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
}

.store-btn-dark:hover {
  background: #000000;
  transform: translateY(-2px);
}

.store-btn-light {
  background: #ffffff;
  color: #111827;
  border: 1px solid #111827;
}

.store-btn-light:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
}

.download-note {
  background: #fff4e5;
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem;
  font-size: 0.85rem;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.download-note h4 {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ================= TESTIMONIAL ================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

#testimoni.section-alt {
  background: #fffdf9;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
  font-size: 0.86rem;
  color: var(--gray);
}

.testimonial-user {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #111827;
}

.user-role {
  font-size: 0.76rem;
  color: var(--gray);
}

/* ================= FOOTER ================= */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.7rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  font-size: 0.82rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.footer-brand-text {
  font-weight: 600;
}

.footer-text {
  color: #e5e7eb;
  max-width: 260px;
  font-size: 0.8rem;
}

.footer-social {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #e5e7eb;
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: var(--orange);
  color: #111827;
  transform: translateY(-1px);
}

.footer-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.footer-list {
  list-style: none;
}

.footer-list li + li {
  margin-top: 0.25rem;
}

.footer-list a {
  color: #d1d5db;
}

.footer-list a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: 1.7rem;
  padding-top: 0.9rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.76rem;
  color: #9ca3af;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom-links a {
  color: #9ca3af;
}

.footer-bottom-links a:hover {
  color: var(--orange);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .hero-image-card img {
    height: 260px;
  }

  .features-grid,
  .download-layout,
  .testimonials-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .features-grid,
  .testimonials-grid,
  .download-layout,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    position: static;
    transform: none;
    margin-top: 0.8rem;
  }

  .download-image-card img {
    height: 230px;
  }

  .cta-panel {
    padding-inline: 1.3rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  html { scroll-behavior: smooth; }
  body { text-rendering: optimizeLegibility; }
/* ================= LEGAL PAGES ================= */
.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #12389c 45%, var(--blue) 100%);
  color: var(--white);
  padding: 2.6rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}

.legal-hero::before{
  content:"";
  position:absolute;
  inset:-35% 35% auto -25%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 60%);
  pointer-events:none;
}

.legal-hero .container{
  position: relative;
}

.legal-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.legal-sub {
  color: #e5e7eb;
  font-size: 0.92rem;
  max-width: 820px;
}

.legal-wrap {
  padding: 2.4rem 0 3.2rem;
  background: #f8fafc;
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

.legal-card h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.2rem 0 0.5rem;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.75;
}

.legal-card ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
}

.legal-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 600;
}

.legal-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-secondary {
  background: var(--white);
  color: #111827;
  border: 1px solid #111827;
}

.btn-secondary:hover{
  background:#f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

/* ================= LEGAL PAGES (PRO) ================= */
:root{
  --legal-bg: #f6f8ff;
  --legal-card: #ffffff;
  --legal-border: #e6e9f2;
  --legal-text: #111827;
  --legal-muted: #6b7280;
  --legal-link: var(--blue);
}

.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #12389c 45%, var(--blue) 100%);
  color: var(--white);
  padding: 2.8rem 0 2.1rem;
  position: relative;
  overflow: hidden;
}

.legal-hero::before{
  content:"";
  position:absolute;
  inset:-35% 35% auto -25%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 60%);
  pointer-events:none;
}

.legal-hero .container{ position: relative; }

.legal-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-sub {
  color: #e5e7eb;
  font-size: 0.95rem;
  max-width: 860px;
}

.legal-meta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.legal-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover{
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Body */
.legal-wrap {
  padding: 2.2rem 0 3.4rem;
  background: var(--legal-bg);
}

.legal-shell{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.legal-aside{
  position: sticky;
  top: 16px;
}

.legal-card,
.legal-toc{
  background: var(--legal-card);
  border-radius: 18px;
  border: 1px solid var(--legal-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.legal-toc{
  padding: 1.1rem 1.1rem;
}

.legal-toc h3{
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-toc a{
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}

.legal-toc a:hover{
  background: #eef2ff;
  color: var(--navy);
  transform: translateY(-1px);
}

.legal-toc small{
  display: block;
  color: var(--legal-muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.55rem;
  line-height: 1.5;
}

.legal-card{
  padding: 1.45rem 1.55rem;
}

.legal-card .doc-head{
  border-bottom: 1px dashed #dbe2ff;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}

.legal-card .doc-head .doc-title{
  font-weight: 900;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.legal-card .doc-head .doc-org{
  color: var(--legal-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.legal-card p,
.legal-card li{
  color: var(--legal-text);
  font-size: 0.92rem;
  line-height: 1.85;
}

.legal-card p{ margin: 0.5rem 0; }
.legal-card ul{ margin: 0.45rem 0 0.95rem 1.15rem; }
.legal-card li{ margin: 0.25rem 0; }

/* Auto numbering sections */
.legal-doc{
  counter-reset: legalSection;
}

.legal-doc section{
  counter-increment: legalSection;
  scroll-margin-top: 92px;
  padding-top: 0.2rem;
}

.legal-doc h2{
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 800;
  margin: 1.15rem 0 0.45rem;
  line-height: 1.35;
}

.legal-doc h2::before{
  content: counter(legalSection) ". ";
  color: var(--blue);
  font-weight: 900;
}

.legal-doc a.inline-link{
  color: var(--legal-link);
  font-weight: 700;
}
.legal-doc a.inline-link:hover{ text-decoration: underline; }

.callout{
  margin-top: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #7c2d12;
  font-size: 0.88rem;
  line-height: 1.7;
}
.callout b{ color: #7c2d12; }

hr.soft{
  border: 0;
  border-top: 1px solid #e6e9f2;
  margin: 1.2rem 0;
}

/* Responsive */
@media (max-width: 980px){
  .legal-shell{ grid-template-columns: 1fr; }
  .legal-aside{ position: static; }
  .legal-card{ padding: 1.2rem 1.1rem; }
}

}
