/* =========================================================
   WebRakyat — design tokens
   Ink & signage palette: deep pine ink, warm paper, kedai-signage
   red, muted teal, gold accent. No cream+serif+terracotta default.
   ========================================================= */
:root{
  --paper:      #FAF8F3;
  --paper-alt:  #F1ECDF;
  --ink:        #16211C;
  --ink-soft:   #4B564F;
  --line:       #DCD5C4;

  --red:        #B3282C;
  --red-dark:   #8C1F22;
  --teal:       #1B6B5A;
  --teal-dark:  #123F35;
  --gold:       #F3B23B;

  --wa-green:   #25D366;
  --wa-green-dark: #1DA851;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1120px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3{
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

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

@media (min-width: 640px){
  .wrap{ padding: 0 32px; }
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--wa-green);
  color: #08281A;
}
.btn-primary:hover{ background: var(--wa-green-dark); color: #fff; }

.btn-secondary{
  background: var(--ink);
  color: var(--paper);
}
.btn-secondary:hover{ background: var(--teal-dark); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }

.btn-disabled{
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 2px dashed var(--line);
  cursor: default;
}

.btn-large{ padding: 16px 26px; font-size: 1.05rem; width: 100%; }
@media (min-width: 480px){ .btn-large{ width: auto; } }

.btn-small{ padding: 10px 16px; font-size: 0.88rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav{
  display: none;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover{ color: var(--teal-dark); }

@media (min-width: 860px){
  .site-nav{ display: flex; }
}

.header-cta{ display: none; }
@media (min-width: 640px){
  .header-cta{ display: inline-flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  padding: 44px 0 56px;
  background:
    radial-gradient(620px 320px at 92% -10%, rgba(243,178,59,0.16), transparent 60%),
    var(--paper);
}

.hero-inner{
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 960px){
  .hero-inner{
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .hero-copy{ flex: 1.05; }
  .hero-visual{ flex: 0.95; }
}

.hero-eyebrow{
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-title{
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 12px;
}

.hero-note{
  font-weight: 600;
  color: var(--red);
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.hero-actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 480px){
  .hero-actions{ flex-direction: row; flex-wrap: wrap; }
}

/* Hero phone visual */
.hero-visual{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 959px){
  .hero-visual{ transform: scale(0.92); }
}

.phone-mock{
  width: 148px;
  border-radius: 20px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 10px 0 -4px rgba(22,33,28,0.12);
}

.phone-mock-head{
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 4px 0 8px;
}

.phone-mock-screen{
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 190px;
}

.social-screen .app-row{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-alt);
  border-radius: 8px;
  padding: 8px 8px;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.dot{ width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.ig{ background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.dot.fb{ background: #1877F2; }
.dot.tt{ background: #16211C; }
.dot.wa{ background: var(--wa-green); }

.site-screen{ display: flex; flex-direction: column; gap: 8px; }
.site-nav-bar{ height: 8px; width: 40%; background: var(--teal); border-radius: 4px; }
.site-hero-block{
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}
.site-line{ height: 7px; border-radius: 4px; background: var(--line); }
.site-line.long{ width: 90%; }
.site-line.short{ width: 55%; }
.site-btn{
  margin-top: 4px;
  background: var(--wa-green);
  color: #08281A;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 6px;
  border-radius: 6px;
}

.transform-arrow{
  flex-shrink: 0;
  color: var(--ink);
}

/* =========================================================
   Sections (generic)
   ========================================================= */
.section{ padding: 60px 0; }
.section-alt{ background: var(--paper-alt); }

.section-title{
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-lead{
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 36px;
}

/* Kenapa WebRakyat — reason grid */
.reason-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.reason-item{
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.reason-item p{ color: var(--ink-soft); }

.reason-num{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-dark);
}

@media (min-width: 720px){
  .reason-grid{ grid-template-columns: 1fr 1fr; }
  .reason-item{
    grid-template-columns: 180px 1fr;
    align-items: baseline;
    gap: 20px;
  }
  .reason-item:nth-last-child(-n+1){ border-bottom: 1px solid var(--line); }
}

/* Who is it for — chip cloud */
.chip-cloud{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-cloud li{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.chip-cloud li:nth-child(3n+1){ border-color: var(--red); color: var(--red-dark); }
.chip-cloud li:nth-child(3n+2){ border-color: var(--teal); color: var(--teal-dark); }

/* Steps */
.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px){
  .steps{ grid-template-columns: repeat(4, 1fr); }
}

.step{
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

.step-num{
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 6px;
}

.step h3{
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p{ color: var(--ink-soft); font-size: 0.96rem; }

.steps-note{
  margin-top: 36px;
  font-weight: 600;
  color: var(--teal-dark);
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

/* Demo / portfolio */
.demo-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px){
  .demo-grid{ grid-template-columns: repeat(3, 1fr); }
}

.demo-card{
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-card-top{
  padding: 26px 20px;
  display: flex;
  align-items: flex-end;
}

.demo-top-warung{ background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.demo-top-car{ background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.demo-top-service{ background: linear-gradient(135deg, #7A7362, #52503F); }

.demo-tag{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--paper);
  font-size: 0.95rem;
}

.demo-card-body{
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.demo-card-body h3{ font-size: 1.2rem; }

.demo-features{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.demo-features li{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 5px 10px;
}

.demo-desc{ color: var(--ink-soft); font-size: 0.96rem; flex: 1; }

.demo-card .btn{ align-self: flex-start; }

.demo-card-soon{ opacity: 0.92; }

/* CTA section */
.cta-section{
  background: var(--ink);
  color: var(--paper);
}

.cta-wrap{ text-align: left; max-width: 640px; }

.cta-title{
  color: var(--paper);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-sub{
  color: #C9D1CB;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* FAQ */
.faq-list{
  border-top: 1px solid var(--line);
}

.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item summary{
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  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: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after{ content: "–"; }

.faq-item p{
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 0.98rem;
  max-width: 68ch;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 44px 0 24px;
}

.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 720px){
  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand p{
  color: var(--ink-soft);
  margin-top: 4px;
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 500;
}
.footer-nav a:hover{ color: var(--teal-dark); }

.footer-social-label{
  color: var(--ink-soft);
  margin-right: 6px;
  font-size: 0.92rem;
}

.footer-social a{
  font-weight: 600;
  color: var(--teal-dark);
}
.footer-social a:hover{ text-decoration: underline; }

.footer-copy{
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 36px;
}

/* =========================================================
   Mobile sticky WhatsApp CTA
   ========================================================= */
.mobile-sticky-cta{
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--wa-green);
  color: #08281A;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 15px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

@media (max-width: 720px){
  .mobile-sticky-cta{ display: block; }
  body{ padding-bottom: 78px; }
}
