/* Melipeer marketing site — mobile-first. Tokens mirror packages/design_system's
   DesignColors + each Flutter app's AppColors, so the web presence reads as
   the same brand as the apps. Modern/minimal on purpose: generous whitespace,
   soft shadows instead of hard borders, no dated skeuomorphism. */
:root {
  --bg: #FAFAFA;
  --bg-alt: #F0F0F0;
  --surface: #FAFAFA;
  --text: #4B4B4B;
  --text-secondary: #7F848D;
  --text-muted: #A6ADB9;
  --accent: #FFC107;

  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Roboto Condensed', var(--font-body);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 12px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 14px 34px rgba(43, 43, 43, 0.10);

  --container: 900px;
  --nav-height: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.1rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 14px; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-outline { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-outline:hover { box-shadow: var(--shadow-md); }

.btn-text { background: none; color: var(--text-secondary); padding: 14px 8px; }
.btn-text:hover { color: var(--text); }

.btn-sm { padding: 11px 18px; font-size: 0.88rem; }

/* ---------- Brand mark ---------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
}
.brand-mark .m1 { color: var(--text); font-weight: 400; }
.brand-mark .m2 { color: var(--accent); font-weight: 400; }
.brand-mark-lg { font-size: 2.3rem; }

.brand-signature {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.brand-signature strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}

/* ---------- Nav (mobile-first: drawer is the default) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(166, 173, 185, 0.2);
}
.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.nav-links {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--surface);
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--bg-alt);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.nav-links.open { max-height: 320px; opacity: 1; }
.nav-links a {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-secondary);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--text); }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

@media (min-width: 780px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .nav-links a { padding: 9px 14px; font-size: 0.92rem; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 52px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 193, 7, 0.18), transparent);
  z-index: 0;
}
.hero-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 34vw, 17rem);
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.hero h1 .highlight { color: var(--accent); }
.hero p.lead { font-size: 1.04rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon-line { color: var(--text); }

@media (min-width: 640px) {
  .hero { padding: 76px 0 68px; }
}

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  background: var(--text);
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 560px; margin: 0 auto 34px; text-align: center; }
.section-head p { margin: 0; }

@media (min-width: 640px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }
}

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.point-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.point-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.point-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--bg-alt);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.point-card h3 { margin-bottom: 6px; }
.point-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Pill list (benefit rows) ---------- */
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pill-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.pill-list .pill-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pill-list strong { display: block; color: var(--text); margin-bottom: 2px; font-size: 0.98rem; }
.pill-list span.desc { font-size: 0.88rem; color: var(--text-secondary); }

/* ---------- Mitra panel (emphasis wrapper — the most important section,
   so it gets a bold solid-accent treatment instead of the usual white card) ---------- */
.mitra-panel {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
}
@media (min-width: 640px) {
  .mitra-panel { padding: 48px 44px; }
}
.mitra-panel .eyebrow { color: var(--text); }
.mitra-panel .pill-list .pill-icon { background: var(--bg); }
.mitra-panel .section-head { margin-bottom: 26px; }

/* ---------- Trust card ---------- */
.trust-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  margin: 0 auto;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.trust-badge .icon-line { color: var(--text); }
.trust-card p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--bg);
}
.cta-band h2, .cta-band p { color: var(--bg); }
.cta-band p { color: var(--text-muted); max-width: 44ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { margin-top: 6px; }

@media (min-width: 640px) {
  .cta-band { padding: 56px 48px; }
}

/* ---------- Legal / article content (kebijakan-privasi.html) ---------- */
.legal-article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 6vw, 48px);
  box-shadow: var(--shadow-sm);
}
.legal-article h2 { margin-top: 36px; font-size: 1.35rem; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 { margin-top: 24px; font-size: 1.05rem; }
.legal-article p, .legal-article li { color: var(--text-secondary); font-size: 0.96rem; }
.legal-article ul { padding-left: 20px; margin: 0 0 14px; }
.legal-article li { margin-bottom: 6px; }
.legal-article hr { border: none; border-top: 1px solid var(--bg-alt); margin: 28px 0; }
.legal-article strong { color: var(--text); }
.legal-article .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Icons ---------- */
.icon-line {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-line.icon-sm { width: 18px; height: 18px; }

/* ---------- Footer (simple, centered) ---------- */
.site-footer { padding: 48px 0 32px; text-align: center; }
.site-footer .brand-mark { margin-bottom: 14px; }
.site-footer p { max-width: 40ch; margin: 0 auto 20px; font-size: 0.9rem; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  list-style: none; margin: 0 0 20px; padding: 0;
  font-size: 0.88rem;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }
.footer-business {
  max-width: 480px; margin: 0 auto 16px; font-size: 0.82rem;
  line-height: 1.7; color: var(--text-muted);
}
.footer-business a { color: var(--text-muted); text-decoration: underline; }
.footer-bottom { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
