/* BEWARKOP - halaman publik (landing, harga, legal) */
.public { background: var(--cream); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 820px; }
.btn-lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn-light { background: #fffaf3; color: var(--espresso); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fffaf3; border-color: rgba(255, 250, 243, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }

/* Navigasi */
.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand-link { color: var(--text); font-weight: 800; letter-spacing: .04em; display: flex; align-items: center; gap: .6rem; }
.brand-link:hover { text-decoration: none; }
.nav-links { display: none; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-actions { display: flex; gap: .5rem; margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-actions { margin-left: 1rem; } }
@media (max-width: 420px) { .nav-login { display: none; } }
.flash-wrap { padding-top: 1rem; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 5rem 0 5.5rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--beige); color: var(--espresso); font-weight: 600; font-size: .82rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; margin: 1.1rem 0 1rem; letter-spacing: -.02em; color: var(--espresso-strong); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .9rem; }
.hero-points li { display: flex; align-items: center; gap: .35rem; }
.hero-points .icon-sm { color: var(--success); }

/* Mock tampilan aplikasi (ilustrasi) */
.hero-preview { position: relative; }
.mock-window { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--muted); }
.mock-pos { display: grid; grid-template-columns: 1fr 150px; }
.mock-menu { padding: .9rem; }
.mock-chips { display: flex; gap: .35rem; margin-bottom: .75rem; font-size: .7rem; }
.mock-chips b, .mock-chips i { font-style: normal; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); }
.mock-chips b { background: var(--espresso); color: #fff; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mock-item { border: 1px solid var(--border); border-radius: 10px; padding: .4rem; font-size: .7rem; }
.mock-item strong { display: block; margin-top: .3rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-thumb { display: grid; place-items: center; height: 44px; border-radius: 8px; color: #fff; }
.mock-thumb.t0 { background: #6b4226; } .mock-thumb.t1 { background: var(--caramel); } .mock-thumb.t2 { background: #8a6a4f; }
.mock-cart { border-left: 1px solid var(--border); padding: .9rem; font-size: .72rem; display: flex; flex-direction: column; gap: .45rem; background: var(--surface-2); }
.mock-line { padding-bottom: .35rem; border-bottom: 1px dashed var(--border-strong); }
.mock-pay { margin-top: auto; text-align: center; background: var(--espresso); color: #fff; border-radius: 8px; padding: .45rem; font-weight: 700; }
.mock-display { position: absolute; right: -10px; bottom: -28px; display: flex; gap: .4rem; background: #1a120d; border-radius: 14px; padding: .6rem; box-shadow: var(--shadow-lg); }
.mock-display div { background: #2a1d15; color: #f6e7d6; border-radius: 8px; padding: .4rem .6rem; text-align: center; min-width: 64px; }
.mock-display small { display: block; font-size: .55rem; letter-spacing: .08em; opacity: .7; }
.mock-display b { font-size: .95rem; }
.mock-display .is-ready { background: #2f7d4f; }
@media (max-width: 560px) { .mock-pos { grid-template-columns: 1fr; } .mock-cart { display: none; } .mock-display { right: 8px; } }

/* Seksi */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head h2, .split h2, .cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; color: var(--espresso-strong); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.feature h3 { margin-top: .9rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--beige); color: var(--espresso); }
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps-row li { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--border); }
.steps-row span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--espresso); color: #fff; font-weight: 700; margin-bottom: .75rem; }
.steps-row p { color: var(--muted); margin: 0; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-reverse > :first-child { order: 0; } }
.split p { color: var(--muted); font-size: 1.02rem; }
.check-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.check-points li { display: flex; gap: .5rem; align-items: flex-start; }
.check-points .icon-sm { color: var(--success); margin-top: 4px; }

.display-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; background: #15100c; padding: 1rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.dd-col { background: #231912; border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; min-height: 180px; }
.dd-col h4 { color: #d9c3ab; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .25rem; }
.dd-col b { background: #33251b; color: #fff; text-align: center; padding: .7rem .4rem; border-radius: 10px; font-size: 1.35rem; letter-spacing: .03em; }
.dd-ready b { background: #2f7d4f; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(47, 125, 79, .25); } }

.devices { position: relative; height: 260px; }
.device { position: absolute; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--caramel); }
.device-laptop { left: 0; top: 10px; width: 68%; height: 190px; border-radius: 14px; }
.device-tablet { right: 8%; top: 60px; width: 34%; height: 170px; border-radius: 16px; }
.device-phone { right: 0; bottom: 0; width: 18%; min-width: 64px; height: 130px; border-radius: 16px; }

/* Harga */
.cycle-toggle { display: inline-flex; padding: 4px; margin-top: .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.cycle-toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); min-height: 40px; }
.cycle-toggle button.is-active { background: var(--espresso); color: #fff; }
.pricing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.price-card.is-featured { border: 2px solid var(--caramel); box-shadow: var(--shadow); }
.price-badge { position: absolute; top: -12px; left: 1.75rem; background: var(--caramel); color: var(--espresso-strong); font-weight: 700; font-size: .75rem; padding: .2rem .7rem; border-radius: 999px; }
.price-desc { color: var(--muted); font-size: .92rem; min-height: 3em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: .5rem 0 1.25rem; }
.price strong { font-size: 2rem; font-weight: 800; color: var(--espresso-strong); }
.price span { color: var(--muted); }
.price-save { flex-basis: 100%; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--success); }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; font-size: .92rem; flex: 1; align-content: start; }
.price-features li { display: flex; gap: .5rem; align-items: flex-start; }
.price-features .icon-sm { color: var(--caramel-strong); margin-top: 3px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.5rem; }

.testimonial-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial { margin: 0; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.02rem; }
.testimonial figcaption { color: var(--muted); font-size: .9rem; }

.faq { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; cursor: pointer; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary .icon-sm { transform: rotate(180deg); }
.faq p { color: var(--muted); margin: 0 0 1.1rem; }

.cta-band { background: var(--espresso); color: #fffaf3; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 250, 243, .8); margin: 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner .hero-cta { margin: 0; }

/* Footer */
.site-footer { background: #1d140e; color: rgba(244, 233, 220, .8); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.site-footer a { color: rgba(244, 233, 220, .85); }
.brand-light { color: #fff; display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .04em; }
.footer-text { color: rgba(244, 233, 220, .65); margin-top: .75rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; color: rgba(244, 233, 220, .55); }

/* Halaman legal */
.legal { padding: 3rem 0 4rem; }
.legal-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; white-space: pre-line; line-height: 1.75; }

[data-theme="dark"] .public, [data-theme="dark"] .site-nav { background: var(--bg); }
[data-theme="dark"] .hero h1, [data-theme="dark"] .section-head h2, [data-theme="dark"] .split h2, [data-theme="dark"] .price strong, [data-theme="dark"] .brand-link { color: var(--text); }
[data-theme="dark"] .steps-row li, [data-theme="dark"] .testimonial { background: var(--surface-2); }

/* =============================================================
   Animasi lembut (hero, aroma kopi, scroll reveal)
   - Semua animasi hanya transform/opacity/stroke agar ringan.
   - Konten tetap terlihat tanpa JavaScript; elemen hanya disembunyikan
     setelah landing.js menambahkan kelas .reveal-ready di <html>.
   - prefers-reduced-motion: semua animasi dimatikan.
   ============================================================= */
.public { --steam: rgba(110, 78, 55, .42); --aroma: #c68b59; --ease-out: cubic-bezier(.22, .61, .36, 1); }
[data-theme="dark"] .public { --steam: rgba(244, 233, 220, .32); }
.site-nav { transition: box-shadow .3s ease, background-color .3s ease; }
.site-nav.is-scrolled { box-shadow: 0 6px 24px rgba(59, 36, 22, .08); }
.hero, .section { overflow-x: hidden; overflow-x: clip; }

/* Hero: latar aroma kopi */
.hero { position: relative; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; }
.aroma-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aroma { stroke: var(--aroma); stroke-width: 70; opacity: .09; stroke-dasharray: 300 260; animation: aroma-drift 22s linear infinite, aroma-breathe 9s ease-in-out infinite; }
.aroma.a2 { stroke-width: 54; animation-duration: 28s, 11s; animation-delay: -6s, -3s; }
.aroma.a3 { stroke-width: 46; opacity: .06; animation-duration: 32s, 13s; animation-delay: -12s, -5s; }
@keyframes aroma-drift { to { stroke-dashoffset: -1120; } }
@keyframes aroma-breathe { 0%, 100% { opacity: .05; } 50% { opacity: .11; } }

/* Hero: muncul bertahap saat halaman dibuka */
.hero-copy > * { animation: rise-in .8s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .35s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }
.hero-preview { animation: rise-in-soft 1s var(--ease-out) .25s both; padding-top: 4.75rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-in-soft { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

/* Mock melayang pelan */
.mock-window { animation: float-y 7s ease-in-out infinite; }
.mock-display { animation: float-y 6s ease-in-out -2s infinite; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Cangkir kopi dengan asap aroma */
.coffee-cup { position: absolute; z-index: 3; left: -34px; top: -44px; width: 140px; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(59, 36, 22, .16)); }
.coffee-cup svg { display: block; width: 100%; height: auto; overflow: visible; }
.steam { animation: steam-sway 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.wisp { stroke: var(--steam); stroke-width: 7; stroke-dasharray: 46 34; transform-box: fill-box; transform-origin: 50% 100%;
  animation: steam-flow 2.8s linear infinite, steam-rise 4.2s ease-in-out infinite; }
.wisp.w2 { stroke-width: 8; animation-delay: -.9s, -1.4s; }
.wisp.w3 { animation-delay: -1.8s, -2.8s; }
@keyframes steam-flow { to { stroke-dashoffset: -80; } }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(10px) scaleX(.9); }
  25% { opacity: .95; }
  65% { opacity: .55; }
  100% { opacity: 0; transform: translateY(-16px) scaleX(1.18); }
}
@keyframes steam-sway { from { transform: translateX(-3px) skewX(-2deg); } to { transform: translateX(3px) skewX(2deg); } }
@media (max-width: 560px) {
  .aroma-bg { opacity: .6; }
  .hero-preview { padding-top: 3.75rem; }
  .coffee-cup { width: 104px; left: -6px; top: -30px; }
}

/* CTA: asap besar samar */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; }
.cta-steam { position: absolute; z-index: 0; right: 4%; bottom: -10%; width: 240px; height: 130%; pointer-events: none; overflow: visible; }
.cta-steam .wisp { stroke: rgba(255, 250, 243, .16); stroke-width: 9; stroke-dasharray: 90 60; animation-duration: 4s, 6s; }
.cta-steam .wisp.w2 { animation-delay: -1.3s, -2s; }
.cta-steam .wisp.w3 { animation-delay: -2.6s, -4s; }
@media (max-width: 640px) { .cta-steam { right: -40px; width: 180px; opacity: .7; } }

/* Scroll reveal */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.reveal-ready [data-reveal="left"] { transform: translateX(-32px); }
.reveal-ready [data-reveal="right"] { transform: translateX(32px); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
.feature-grid > :nth-child(2), .steps-row > :nth-child(2), .pricing-grid > :nth-child(2), .testimonial-grid > :nth-child(2) { --rd: .08s; }
.feature-grid > :nth-child(3), .steps-row > :nth-child(3), .pricing-grid > :nth-child(3), .testimonial-grid > :nth-child(3) { --rd: .16s; }
.feature-grid > :nth-child(4), .pricing-grid > :nth-child(4) { --rd: .24s; }
.feature-grid > :nth-child(5) { --rd: .32s; }
.feature-grid > :nth-child(6) { --rd: .4s; }
.faq:nth-of-type(2) { --rd: .05s; } .faq:nth-of-type(3) { --rd: .1s; } .faq:nth-of-type(4) { --rd: .15s; }
.faq:nth-of-type(5) { --rd: .2s; } .faq:nth-of-type(6) { --rd: .25s; }
@media (max-width: 700px) { .reveal-ready [data-reveal="left"], .reveal-ready [data-reveal="right"] { transform: translateY(26px); } }

/* Interaksi kecil */
.feature, .price-card, .steps-row li { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease, opacity .75s var(--ease-out); }
@media (hover: hover) {
  .feature:hover, .steps-row li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--caramel) 45%, var(--border)); }
  .price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .feature:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
}
.feature-icon { transition: transform .35s var(--ease-out); }
.faq p { animation: none; }
.faq[open] p { animation: rise-in .4s var(--ease-out) both; }
.faq summary .icon-sm { transition: transform .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-preview, .mock-window, .mock-display, .steam, .wisp, .aroma, .faq[open] p, .dd-ready b { animation: none !important; }
  .wisp { opacity: .5; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .feature, .price-card, .steps-row li, .feature-icon { transition: none; }
}
