/* ============================================================
   JamSholatku — desain sistem bersama (landing + dashboard)
   Palet: hijau tua Islami + emerald aksen, tanpa framework
   ============================================================ */
:root {
  --green-950: #052e22;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --emerald: #10b981;
  --emerald-light: #6ee7b7;
  --gold: #f59e0b;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 78, 59, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* atribut hidden harus selalu menang atas display selektor lain */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar .inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--green-900); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--green-700), var(--emerald)); display: grid; place-items: center; color: #fff; font-size: 1.05rem; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; color: var(--slate); }
.nav-links a:hover { color: var(--green-700); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- tombol ---------- */
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: .15s; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--green-800); background: #fff; }
.btn-ghost:hover { border-color: var(--emerald); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1000px 500px at 80% -10%, rgba(16,185,129,.25), transparent 60%),
        linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
  color: #fff; padding: 84px 0 96px; overflow: hidden; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.18; font-weight: 800; max-width: 21ch; }
.hero .sub { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--emerald-light); max-width: 56ch; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero .proof { margin-top: 34px; font-size: .92rem; color: rgba(255,255,255,.75); display: flex; gap: 20px; flex-wrap: wrap; }
.hero .proof span::before { content: "✓ "; color: var(--emerald-light); font-weight: 700; }

/* panel demo TV di hero */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.tv-mock { background: #03150f; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.tv-mock .bar { display: flex; justify-content: space-between; font-size: .8rem; color: var(--emerald-light); margin-bottom: 10px; }
.tv-mock .clock { font-size: 2.6rem; font-weight: 800; letter-spacing: 1px; }
.tv-mock .times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tv-mock .times div { background: rgba(255,255,255,.07); border-radius: 8px; padding: 8px 6px; text-align: center; font-size: .82rem; }
.tv-mock .times b { display: block; font-size: 1.05rem; color: var(--gold); }
.tv-mock .cd { margin-top: 14px; text-align: center; font-size: .9rem; color: #fff; background: rgba(16,185,129,.2); border-radius: 8px; padding: 8px; }

/* ---------- section ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--green-950); text-align: center; max-width: 30ch; margin-inline: auto; }
.section .lead { text-align: center; color: var(--slate); margin: 14px auto 44px; max-width: 62ch; }
.eyebrow { display: block; text-align: center; color: var(--emerald); font-weight: 700; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; margin-bottom: 10px; }

/* kartu fitur */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: .15s; }
.card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.06rem; color: var(--green-950); margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--slate); }

/* langkah */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 10px 0 8px; font-size: 1.03rem; color: var(--green-950); }
.step p { font-size: .92rem; color: var(--slate); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--emerald); box-shadow: var(--shadow); position: relative; }
.plan.popular .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--emerald); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .05em; }
.plan h3 { color: var(--green-950); font-size: 1.15rem; }
.plan .desc { color: var(--slate); font-size: .88rem; min-height: 40px; margin-top: 4px; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--green-800); margin: 16px 0 2px; }
.plan .per { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 24px; flex: 1; }
.plan li { padding: 7px 0; font-size: .92rem; color: var(--slate); border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓ "; color: var(--emerald); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 17px 20px; font-weight: 600; color: var(--green-950); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--slate); font-size: .95rem; }

/* ---------- CTA + footer ---------- */
.cta { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; text-align: center; padding: 64px 0; border-radius: 20px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin: 12px 0 26px; }
.footer { background: var(--green-950); color: rgba(255,255,255,.75); padding: 52px 0 26px; margin-top: 76px; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--emerald-light); }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 18px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .steps, .plans, .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero-grid, .grid-3, .grid-4, .steps, .plans, .footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
}
