/*!
 * JWS TV — situs publik (halaman depan, harga, kebijakan) dan halaman jadwal jamaah.
 * Memakai variabel & komponen dari app.css.
 */
body.site { background: var(--bg); font-size: 16px; line-height: 1.55; }
/* Tautan lompat: disembunyikan dengan clip (bukan left:-9999px yang membuat halaman RTL bisa digulir ke samping). */
.skip { position: absolute; top: 8px; inset-inline-start: 12px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }

/* ---------- Kepala & kaki situs ---------- */
.site-header { background: rgba(244, 246, 245, .92); border-bottom: 1px solid transparent; }
.site-header-in { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .brand-logo { width: 34px; height: 34px; color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--text2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a.btn { color: #fff; }
.site-nav .cta { height: 44px; padding: 0 18px; }
@media (max-width: 900px) { .site-nav .hide-sm { display: none; } }
@media (max-width: 480px) { .site-nav .hide-xs { display: none; } .site-nav { gap: 14px; } .site-header-in { padding: 14px 16px; } }

.site-footer { margin-top: 16px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer-in { max-width: 1200px; margin: 0 auto; padding: 36px 24px 22px; display: grid; gap: 28px; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
.site-footer h2 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; color: var(--muted); font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.foot-col a { color: var(--text2); text-decoration: none; }
.foot-col a:hover { color: var(--primary); text-decoration: underline; }
.site-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 14px 24px 28px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line3); }
@media (max-width: 860px) { .site-footer-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Bagian umum ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }
.band { padding: 64px 0; }
.band.white { background: var(--surface); border-top: 1px solid var(--line3); border-bottom: 1px solid var(--line3); }
.band-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 32px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.band-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.band-head p { color: #46525E; font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Pahlawan (hero) ---------- */
.hero2 { max-width: 1200px; margin: 0 auto; padding: 40px 24px 72px; display: grid; gap: 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.hero2 .copy { display: flex; flex-direction: column; gap: 22px; }
.hero2 h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero2 .lead { font-size: 19px; color: #46525E; max-width: 34em; }
.hero2 .note { font-size: 14px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.xl { height: 54px; padding: 0 24px; border-radius: 12px; font-size: 16px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--text2); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); }

.tv-shell { width: 100%; max-width: 640px; margin: 0 auto; padding: 10px; background: #1C2229; border-radius: 16px; box-shadow: 0 24px 48px rgba(23, 33, 44, .18); }
.tv-shell .tvframe { border: 0; border-radius: 6px; }
.tv-stand { width: 22%; height: 14px; margin: 0 auto; background: linear-gradient(#2A323B, #1C2229); border-radius: 0 0 10px 10px; }
.tv-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Ilustrasi layar statis (bila masjid contoh tidak tersedia) */
.tv-static { container-type: inline-size; aspect-ratio: 16 / 9; background: #14233D; color: #EEF2EC; border-radius: 6px; padding: 2.6cqw 3cqw; display: flex; flex-direction: column; gap: 1.6cqw; overflow: hidden; font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; }
.tv-static .r1 { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.tv-static .r1 b { font-size: 2.6cqw; display: block; }
.tv-static .r1 small { font-size: 1.5cqw; color: #A9B6C8; display: block; }
.tv-static .r1 .d { text-align: right; font-size: 1.7cqw; }
.tv-static .r1 .d em { font-style: normal; color: #E2B04F; display: block; }
.tv-static .r2 { flex: 1; display: flex; gap: 2.4cqw; min-height: 0; }
.tv-static .clock { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .8cqw; }
.tv-static .clock .t { font-size: 14cqw; line-height: .85; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-family: 'JWS Angka', 'Plus Jakarta Sans', sans-serif; }
.tv-static .clock .n { font-size: 2cqw; color: #A9B6C8; }
.tv-static .clock .n strong { color: #E2B04F; font-size: 3.4cqw; font-variant-numeric: tabular-nums; }
.tv-static .panel { width: 38%; border-radius: 1.2cqw; background: #1B2D4B; padding: 2cqw; display: flex; flex-direction: column; gap: .6cqw; }
.tv-static .panel b { font-size: 2.6cqw; }
.tv-static .panel span { font-size: 1.8cqw; color: #E2B04F; }
.tv-static .panel small { font-size: 1.5cqw; color: #DDE4EC; }
.tv-static .times { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6cqw; text-align: center; font-variant-numeric: tabular-nums; }
.tv-static .times div { padding: .8cqw 0; color: #A9B6C8; border-radius: .9cqw; }
.tv-static .times div.hl { background: #E2B04F; color: #14233D; }
.tv-static .times small { display: block; font-size: 1.5cqw; }
.tv-static .times b { display: block; font-size: 3cqw; }

/* ---------- Dua cara ---------- */
.ways { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.way .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.way .ico svg { width: 26px; height: 26px; }
.way h3 { font-size: 20px; }
.way p { color: var(--text2); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 9px; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 28px; counter-reset: step; }
.step { position: relative; padding: 20px 20px 20px 66px; border-radius: 14px; border: 1px dashed var(--line2); background: var(--surface2); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 16px; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { display: block; margin-bottom: 4px; }
.step p { color: var(--text2); font-size: 15px; }

/* ---------- Fitur ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.fcard .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.fcard .ico svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 17px; }
.fcard p { color: var(--text2); font-size: 15px; }

/* ---------- Galeri template ---------- */
.tpl-show { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.tpl-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tpl-item .shot { aspect-ratio: 16 / 9; background: #14233D; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tpl-item .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-item .shot.portrait img { object-fit: contain; }
.tpl-item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-item .body h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.tpl-item .body p { font-size: 14px; color: var(--text2); flex: 1; }
.tpl-item .body a { font-size: 14px; font-weight: 700; }

/* ---------- Harga ---------- */
.period-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #E6EBE8; }
.period-switch button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 9px; color: var(--text2); cursor: pointer; }
.period-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset, var(--shadow); }
.plan-card .flag { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; }
.plan-card h3 { font-size: 20px; }
.plan-card .desc { color: var(--text2); font-size: 15px; min-height: 46px; }
.plan-card .amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-card .amount b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-card .amount span { color: var(--muted); font-weight: 600; }
.plan-card .save { font-size: 13px; font-weight: 700; color: var(--primary); min-height: 20px; }
.plan-card .ticks { flex: 1; }
.plan-card .btn { width: 100%; height: 48px; }
.plans .plan-card [data-period-show] { display: none; }
.plans.period-yearly .plan-card [data-period-show="yearly"], .plans.period-monthly .plan-card [data-period-show="monthly"] { display: block; }
.plans.period-yearly .plan-card .amount[data-period-show="yearly"], .plans.period-monthly .plan-card .amount[data-period-show="monthly"] { display: flex; }

.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 12px 16px; border-top: 1px solid var(--line3); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--surface2); font-size: 14px; border-top: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { white-space: nowrap; }
.compare td:first-child { min-width: 200px; }
.compare .yes { color: var(--primary); font-weight: 800; }
.paylogos { display: flex; flex-wrap: wrap; gap: 10px; }
.paylogos span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--text2); }

/* ---------- Tanya jawab & ajakan ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); font-weight: 600; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 18px; color: var(--text2); }
.cta-band { background: var(--night); color: #EEF2EC; border-radius: 22px; padding: 40px clamp(22px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.cta-band p { color: #B7C2CC; margin-top: 6px; }
.cta-band .btn { background: var(--brass); border-color: var(--brass); color: #14233D; }
.cta-band .btn:hover { background: #EBC06A; border-color: #EBC06A; color: #14233D; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: #4A5866; }

/* ---------- Halaman teks (syarat & privasi) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 32px 24px 0; display: flex; flex-direction: column; gap: 14px; color: var(--text2); }
.doc h1 { font-size: clamp(30px, 4vw, 40px); color: var(--text); letter-spacing: -0.03em; }
.doc h2 { font-size: 20px; color: var(--text); margin-top: 18px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }

/* ---------- Halaman jadwal jamaah ---------- */
body.jamaah { background: var(--bg); }
.jp { gap: 18px; }
.jp-head .t { min-width: 0; }
.jp-head h1 { font-size: 22px; line-height: 1.2; }
.jp-head p { color: var(--muted); font-size: 14px; }
.jp-date { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.jp-date .h { color: #8F6214; }
.jp-next .lbl { font-size: 15px; color: #B7C2CC; }
.jp-next .row2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.jp-next .at { font-size: 16px; color: #EEF2EC; font-weight: 700; }
.jp-times.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jp-times div.done { opacity: .55; }
@media (max-width: 420px) { .jp-times.five { gap: 6px; } .jp-times.five b { font-size: 17px; } .jp-times.five div { padding: 9px 2px; } }
.jp-extras { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; color: var(--text2); margin-top: -6px; }
.jp-extras b { font-variant-numeric: tabular-nums; }
.jp-times div small { display: block; font-size: 11px; color: var(--muted); }
.jp-times div.hl small { color: #DDEDE8; }
.jp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.jp-card h2 { font-size: 16px; }
.jp-list { display: flex; flex-direction: column; }
.jp-list > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line3); }
.jp-list > div:first-child { border-top: 0; padding-top: 2px; }
.jp-list .when { flex-shrink: 0; width: 64px; text-align: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); padding: 6px 4px; font-weight: 800; line-height: 1.15; }
.jp-list .when small { display: block; font-size: 11px; font-weight: 700; }
.jp-list .what { min-width: 0; }
.jp-list .what b { display: block; }
.jp-list .what span { display: block; font-size: 14px; color: var(--text2); }
.jp-officers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jp-officers div { background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.jp-officers small { display: block; font-size: 12px; color: var(--muted); }
.jp-month { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.jp-month th { position: sticky; top: 0; background: var(--surface2); font-size: 11px; color: var(--faint); padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.jp-month td { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line3); }
.jp-month td:first-child, .jp-month th:first-child { text-align: left; padding-left: 8px; }
.jp-month tr.today td { background: var(--primary-soft); font-weight: 800; }
.jp-month tr.fri td:first-child { color: var(--primary); font-weight: 700; }
.jp-month .hd { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.jp-tablewrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.jp-month td:first-child { white-space: nowrap; }
@media (max-width: 440px) {
  .jp-card { padding: 14px 12px; }
  .jp-tablewrap { margin: 0 -12px; padding: 0 8px; }
  .jp-month { font-size: 12px; }
  .jp-month th { font-size: 10px; padding: 6px 1px; }
  .jp-month td { padding: 6px 1px; }
  .jp-month td:first-child, .jp-month th:first-child { padding-left: 4px; }
}
.jp-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
.jp-money div { background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.jp-money small { display: block; font-size: 12px; color: var(--muted); }
.jp-money b { font-size: 16px; }
.jp-foot { text-align: center; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 340px) { .jp-times, .jp-times.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media print { .jp-next, .jp-foot, .noprint { display: none !important; } }

/* Laporan mitra (/partner/laporan/...) */
.doc.statement { padding-bottom: 56px; }
.doc.statement .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.doc.statement .stat-row .box { display: flex; flex-direction: column; gap: 4px; }
.doc.statement .stat-row .box span { font-size: 14px; color: var(--muted); }
.doc.statement .stat-row .box b { font-size: 22px; color: var(--text); }
.doc.statement .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc .statement-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc .statement-table th, .doc .statement-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.doc .statement-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.doc .statement-table .num { text-align: end; white-space: nowrap; }
.doc .statement-table tr.void td { color: var(--muted); text-decoration: line-through; }
.doc .statement-table tr.void td:last-child { text-decoration: none; }
