/* ==========================================================================
   Sewoork landing page — section halaman depan.
   Token warna, reset, tombol, header, footer & modal ada di chrome.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.sw-hero { position: relative; overflow: hidden; padding: 56px 0 96px; margin-top: calc(var(--sw-header-h) * -1); padding-top: calc(var(--sw-header-h) + 56px); }
.sw-hero__bg {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(108, 92, 255, .14), transparent 60%),
		radial-gradient(700px 500px at 10% 0%, rgba(13, 110, 240, .14), transparent 60%),
		linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}
.sw-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(13, 110, 240, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 110, 240, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.sw-hero__grid > *, .sw-showcase__row > *, .sw-faq__inner > *, .sw-cta__box > * { min-width: 0; }
.sw-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.sw-hero__title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; }
.sw-hero__title .sw-gradient-text { display: block; }
.sw-hero__subtitle { font-size: clamp(16px, 1.6vw, 19px); color: var(--sw-body); max-width: 560px; margin-bottom: 32px; }
.sw-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.sw-hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--sw-body); }
.sw-hero__points li { display: inline-flex; align-items: center; gap: 7px; }
.sw-hero__points .sw-icon { width: 18px; height: 18px; color: #fff; background: var(--sw-green); border-radius: 50%; padding: 3px; stroke-width: 3; }

.sw-hero__stats { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--sw-line); font-size: 15px; }
.sw-hero__stats strong { color: var(--sw-ink); font-weight: 800; }
.sw-hero__stats .sw-dot { margin: 0 6px; color: var(--sw-muted); }
.sw-hero__avatars { display: flex; }
.sw-hero__avatars .sw-avatar { margin-left: -10px; border: 3px solid #fff; }
.sw-hero__avatars .sw-avatar:first-child { margin-left: 0; }

.sw-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; overflow: hidden; background: #fff; box-shadow: var(--sw-shadow-sm); }
.sw-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sw-hero__visual { position: relative; }
.sw-hero__glow { position: absolute; inset: 10% 8%; background: var(--sw-gradient); filter: blur(70px); opacity: .25; border-radius: 50%; }
.sw-hero__img { position: relative; width: 100%; max-width: 560px; margin: 0 auto; animation: sw-float 7s ease-in-out infinite; }

.sw-float {
	position: absolute; display: flex; align-items: center; gap: 12px;
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; padding: 12px 16px 12px 12px;
	box-shadow: var(--sw-shadow-lg); font-size: 14px; line-height: 1.3;
	animation: sw-float 6s ease-in-out infinite;
}
.sw-float strong { display: block; color: var(--sw-ink); font-weight: 700; }
.sw-float small { color: var(--sw-muted); font-size: 12px; }
.sw-float--a { left: -4%; bottom: 18%; animation-delay: -2s; }
.sw-float--b { right: -2%; top: 12%; animation-delay: -4s; }
.sw-float__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--sw-primary-50); color: var(--sw-primary); }
.sw-float__icon--green { background: #e7f8ef; color: var(--sw-green); }
.sw-float__icon .sw-icon { width: 20px; height: 20px; }

@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.sw-section { padding: 96px 0; }
.sw-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sw-section__head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.sw-section__head p { font-size: 18px; color: var(--sw-muted); }
.sw-section__head--left { text-align: left; margin: 0; }

.sw-card { background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 30px; box-shadow: var(--sw-shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sw-card:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow); border-color: var(--sw-primary-100); }

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */
.sw-clients { padding-top: 40px; background: linear-gradient(180deg, #fff 0%, var(--sw-soft) 100%); }
.sw-clients .sw-section__head { margin-bottom: 44px; }

/* "Logo wall": tanpa kartu — logo, nama, jenis usaha & lokasi dipisah garis tipis.
   Lebar item mengikuti isi sehingga teks tidak terpotong. */
.sw-client {
	display: flex; align-items: center; gap: 14px;
	padding: 6px 36px;
}
.sw-client + .sw-client { border-left: 1px solid var(--sw-line); }
.sw-client__logo {
	position: relative; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; overflow: hidden; background: #fff;
	box-shadow: 0 0 0 1px var(--sw-line), 0 6px 16px -10px rgba(11, 27, 58, .35);
}
.sw-client__logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.sw-client__initials { display: none; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.sw-client__logo.is-fallback { box-shadow: none; }
.sw-client__logo.is-fallback .sw-client__initials { display: block; }
.sw-client__meta { display: flex; flex-direction: column; min-width: 0; }
.sw-client__name { font-weight: 700; color: var(--sw-ink); font-size: 15px; line-height: 1.35; white-space: nowrap; }
.sw-client__sub { font-size: 13px; line-height: 1.4; color: var(--sw-muted); white-space: nowrap; }
.sw-client__sub--link { color: var(--sw-primary); font-weight: 700; }

/* Warna avatar/inisial konsisten per client */
.sw-tone-0 { background: #e8f1ff; color: #0d6ef0; }
.sw-tone-1 { background: #efeaff; color: #6c5cff; }
.sw-tone-2 { background: #e5f8f0; color: #0e9f5f; }
.sw-tone-3 { background: #fff2e5; color: #e5780b; }
.sw-tone-4 { background: #ffe9ef; color: #e0336b; }
.sw-tone-5 { background: #e3f6fb; color: #0b8fb5; }
.sw-client__logo:not(.is-fallback) { background: #fff; }

.sw-client-grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
.sw-client--you { padding: 0; border: 0 !important; margin-left: 16px; }
.sw-client--you a { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border: 1.5px dashed #b8cff5; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: border-color .2s, background-color .2s; }
.sw-client--you a:hover { border-color: var(--sw-primary); background: #fff; }
.sw-client__logo--plus { background: var(--sw-gradient); color: #fff; font-size: 24px; font-weight: 500; box-shadow: none; }

.sw-marquee {
	overflow: hidden; padding: 12px 0 20px;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.sw-marquee__track { display: flex; width: max-content; animation: sw-marquee var(--sw-marquee-duration, 40s) linear infinite; }
.sw-marquee:hover .sw-marquee__track { animation-play-state: paused; }
/* Duplikat kedua dimulai tepat di 50%: garis pemisah di item pertama duplikat menjaga ritme. */
.sw-marquee .sw-client:first-child { border-left: 1px solid var(--sw-line); }
@keyframes sw-marquee { to { transform: translateX(-50%); } }

.sw-clients__cta { text-align: center; margin-top: 32px; font-size: 16px; color: var(--sw-muted); }
.sw-clients__cta a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 700; color: var(--sw-primary) !important; }
.sw-clients__cta .sw-icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Benefits & features
   -------------------------------------------------------------------------- */
.sw-benefits { background: var(--sw-soft); padding-top: 32px; }
.sw-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sw-benefit h3 { font-size: 20px; margin: 20px 0 10px; }
.sw-benefit p { color: var(--sw-muted); }
.sw-benefit__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--sw-gradient); color: #fff; box-shadow: 0 12px 24px -12px rgba(13, 110, 240, .8); }
.sw-benefit__icon .sw-icon { width: 26px; height: 26px; }

.sw-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sw-feature { position: relative; padding: 28px 24px; border-radius: var(--sw-radius); border: 1px solid var(--sw-line); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.sw-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--sw-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.sw-feature:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow); border-color: var(--sw-primary-100); }
.sw-feature:hover::before { transform: scaleX(1); }
.sw-feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sw-primary-50); color: var(--sw-primary); margin-bottom: 18px; transition: background-color .25s, color .25s; }
.sw-feature:hover .sw-feature__icon { background: var(--sw-primary); color: #fff; }
.sw-feature h3 { font-size: 17px; margin-bottom: 8px; }
.sw-feature p { font-size: 15px; color: var(--sw-muted); }

/* --------------------------------------------------------------------------
   Showcase
   -------------------------------------------------------------------------- */
.sw-showcase { padding-top: 24px; }
.sw-showcase__row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sw-showcase__row + .sw-showcase__row { margin-top: 96px; }
.sw-showcase__row.is-reversed .sw-showcase__media { order: 2; }
.sw-showcase__media { background: linear-gradient(135deg, var(--sw-primary-50), #f3f0ff); border-radius: var(--sw-radius-lg); padding: 28px; }
.sw-showcase__media img { border-radius: 18px; width: 100%; }
.sw-showcase__copy h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.sw-showcase__copy > p { font-size: 17px; color: var(--sw-muted); margin-bottom: 24px; }

.sw-checklist { display: grid; gap: 12px; }
.sw-checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--sw-ink); }
.sw-checklist .sw-icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--sw-primary-50); color: var(--sw-primary); stroke-width: 3; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.sw-how { background: var(--sw-ink); color: #c7d2e6; position: relative; overflow: hidden; }
.sw-how::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(108, 92, 255, .35), transparent 65%); }
.sw-how h2, .sw-how h3 { color: #fff; }
.sw-how .sw-eyebrow { background: rgba(255, 255, 255, .08); color: #9cc3ff; }
.sw-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.sw-steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; border-top: 2px dashed rgba(255, 255, 255, .18); }
.sw-step { position: relative; text-align: center; padding: 0 12px; }
.sw-step__num { position: relative; width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--sw-gradient); color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 0 0 8px rgba(13, 110, 240, .18); }
.sw-step h3 { font-size: 20px; margin-bottom: 10px; }
.sw-step p { color: #a9b6cf; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.sw-pricing { background: var(--sw-soft); }
.sw-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.sw-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: 34px 30px; box-shadow: var(--sw-shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.sw-plan:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow); }
.sw-plan.is-popular { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--sw-gradient) border-box; box-shadow: var(--sw-shadow-lg); transform: translateY(-8px); }
.sw-plan.is-popular:hover { transform: translateY(-12px); }
.sw-plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sw-gradient); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.sw-plan__name { font-size: 22px; }
.sw-plan__desc { color: var(--sw-muted); font-size: 15px; margin: 6px 0 20px; min-height: 48px; }
.sw-plan__price { margin-bottom: 24px; color: var(--sw-muted); font-size: 14px; }
.sw-plan__price strong { font-size: 46px; font-weight: 800; color: var(--sw-ink); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
/* Kode mata uang lebih dari satu huruf (mis. "Rp") dibuat kecil supaya angka tetap muat. */
.sw-plan__currency.is-code { font-size: .5em; letter-spacing: 0; margin-right: 3px; vertical-align: .55em; }
.sw-plan__list { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sw-line); font-size: 15px; }
.sw-plan__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--sw-ink); }
.sw-plan__list .sw-icon { width: 20px; height: 20px; color: var(--sw-green); stroke-width: 2.6; margin-top: 2px; }
.sw-plan__list li.is-off { color: #a3aec2; }
.sw-plan__list li.is-off .sw-icon { color: #c4ccd9; }
.sw-plan__list em { font-style: normal; font-weight: 700; color: var(--sw-primary); white-space: nowrap; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.sw-faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.sw-faq__inner .sw-section__head { position: sticky; top: calc(var(--sw-header-h) + 32px); }
.sw-faq__inner .sw-section__head p { margin-top: 18px; }
.sw-faq__list { display: grid; gap: 12px; }
.sw-faq__item { border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.sw-faq__item[open] { border-color: var(--sw-primary-100); box-shadow: var(--sw-shadow-sm); }
.sw-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.sw-faq__item summary::-webkit-details-marker { display: none; }
.sw-faq__item summary h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sw-faq__item summary .sw-icon { color: var(--sw-muted); transition: transform .25s ease; }
.sw-faq__item[open] summary .sw-icon { transform: rotate(180deg); color: var(--sw-primary); }
.sw-faq__item p { padding: 0 24px 22px; color: var(--sw-muted); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.sw-cta { padding-top: 24px; }
.sw-cta__box {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center;
	padding: 64px; border-radius: 36px; background: var(--sw-gradient); color: #e6efff;
	box-shadow: var(--sw-shadow-lg);
}
.sw-cta__box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 110%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(400px 260px at 0% 0%, rgba(255, 255, 255, .15), transparent 60%); pointer-events: none; }
.sw-cta__copy { position: relative; }
.sw-cta__box h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.sw-cta__box p { font-size: 18px; max-width: 580px; }
.sw-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.sw-cta__download { font-size: 14px !important; opacity: .85; margin-bottom: 12px; }
.sw-cta__art { position: relative; }
.sw-cta__art img { width: 100%; max-width: 300px; margin-left: auto; border-radius: 28px; background: #fff; padding: 12px; transform: rotate(3deg); box-shadow: var(--sw-shadow-lg); }

/* --------------------------------------------------------------------------
   Language hint (saran bahasa sesuai browser)
   -------------------------------------------------------------------------- */
.sw-lang-hint {
	position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%);
	display: flex; align-items: center; gap: 12px;
	background: var(--sw-ink); color: #fff; padding: 12px 12px 12px 18px; border-radius: 999px;
	box-shadow: var(--sw-shadow-lg); font-size: 14px; max-width: calc(100% - 32px);
	animation: sw-up .4s ease both;
}
.sw-lang-hint[hidden] { display: none; }
.sw-lang-hint > .sw-icon { width: 18px; height: 18px; color: #9cc3ff; }
.sw-lang-hint__action { background: #fff; color: var(--sw-primary) !important; font-weight: 700; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.sw-lang-hint__close { background: none; border: 0; color: #a9b6cf; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.sw-lang-hint__close .sw-icon { width: 18px; height: 18px; }
@keyframes sw-up { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes sw-up-mobile { from { opacity: 0; transform: translateY(16px); } }

/* --------------------------------------------------------------------------
   Reveal on scroll (hanya aktif bila JS berjalan)
   -------------------------------------------------------------------------- */
.sw-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.sw-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.sw-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.sw-section { padding: 72px 0; }
	.sw-hero { padding-bottom: 72px; }
	.sw-hero__grid, .sw-showcase__row, .sw-faq__inner, .sw-cta__box { grid-template-columns: 1fr; }
	.sw-hero__copy { text-align: center; }
	.sw-hero__subtitle { margin-left: auto; margin-right: auto; }
	.sw-hero__ctas, .sw-hero__points, .sw-hero__stats { justify-content: center; }
	.sw-hero__visual { max-width: 520px; margin: 0 auto; }
	.sw-showcase__row { gap: 32px; }
	.sw-showcase__row.is-reversed .sw-showcase__media { order: 0; }
	.sw-benefits__grid, .sw-pricing__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.sw-plan.is-popular { transform: none; }
	.sw-steps { grid-template-columns: 1fr; gap: 36px; }
	.sw-steps::before { display: none; }
	.sw-faq__inner { gap: 32px; }
	.sw-faq__inner .sw-section__head { position: static; text-align: center; }
	.sw-cta__box { padding: 48px 32px; text-align: center; }
	.sw-cta__box p { margin-left: auto; margin-right: auto; }
	.sw-cta__actions, .sw-cta .sw-stores { justify-content: center; }
	.sw-cta__art { display: none; }
}

@media (max-width: 560px) {
	.sw-hero__ctas .sw-btn, .sw-cta__actions .sw-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
	.sw-hero__stats { flex-direction: column; text-align: center; gap: 10px; }
	.sw-float { font-size: 12px; padding: 8px 12px 8px 8px; }
	.sw-float__icon { width: 30px; height: 30px; }
	.sw-float--a { left: 0; bottom: 8%; }
	.sw-float--b { right: 0; top: 4%; }
	.sw-features__grid { grid-template-columns: 1fr; }
	.sw-client-grid .sw-client { border-left: 0; padding: 6px 16px; }
	.sw-client--you { margin: 8px 0 0; }
	.sw-marquee .sw-client { padding: 6px 24px; }
	.sw-showcase__media { padding: 16px; }
	.sw-lang-hint { left: 12px; right: 12px; bottom: 76px; max-width: none; transform: none; border-radius: 16px; padding: 10px 10px 10px 14px; font-size: 13px; animation-name: sw-up-mobile; }
	.sw-lang-hint__text { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.sw-js [data-reveal] { opacity: 1; transform: none; }
	.sw-marquee { overflow-x: auto; }
}
