/* why.css — "Mengapa memilih DinoRexPDF" (laptop & HP) + popup halus bersama. */
:root { --art-shade: transparent; --title-em: linear-gradient(110deg, #ee010d 0%, #ff3d2e 55%, #ff7a3d 100%); --doc: #ffffff; --doc-line: #ece7e5; --screen: linear-gradient(180deg, #fdfcfc, #f6f3f2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --art-shade: rgba(20, 18, 17, 0.42); --title-em: linear-gradient(110deg, #ff5a62 0%, #ff8a5c 55%, #ffb37a 100%); --doc: #2a2726; --doc-line: #3a3533; --screen: linear-gradient(180deg, #262322, #1f1d1c); }
}
:root[data-theme="dark"] { --art-shade: rgba(20, 18, 17, 0.42); --title-em: linear-gradient(110deg, #ff5a62 0%, #ff8a5c 55%, #ffb37a 100%); --doc: #2a2726; --doc-line: #3a3533; --screen: linear-gradient(180deg, #262322, #1f1d1c); }

.why { max-width: 1320px; margin: 40px auto 0; padding: 32px 32px 40px; scroll-margin-top: 24px; }

/* ================= Hero bergaya majalah ================= */
.why-show {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 22px 28px; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
  grid-template-areas: "top top top" "title visual lead" "chips visual cta";
  min-height: 560px; padding: 26px 36px 32px; border-radius: 36px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface-solid) 94%, transparent), color-mix(in srgb, var(--surface-solid) 66%, transparent));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.ws-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ws-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lav) 45%, transparent); }
.ws-meta { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

.ws-title { grid-area: title; position: relative; z-index: 2; margin: 0 -22% 0 0; font-family: var(--serif); font-weight: var(--display-weight); font-size: clamp(48px, 5.8vw, 96px); line-height: 0.98; letter-spacing: -0.045em; }
.ws-title span, .ws-title em { display: block; }
.ws-title em { font-style: italic; font-weight: 300; letter-spacing: -0.03em; background: var(--title-em); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* ruang ekstra agar ekor huruf (y, g, j) & kemiringan italic tidak terpotong oleh background-clip */
  padding: 0.04em 0.12em 0.2em 0.02em; margin: -0.04em -0.12em -0.2em -0.02em; }

.ws-lead { grid-area: lead; justify-self: end; max-width: 34ch; margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.ws-chips { grid-area: chips; align-self: end; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chip {
  font: inherit; font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.ws-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.ws-chip:focus-visible, .ws-pill:focus-visible, .feature:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }

/* pil kecil bergambar di pojok (seperti lampiran) */
.ws-pill {
  grid-area: cta; justify-self: end; align-self: end; display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 8px 7px 7px; border-radius: 999px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #1e1c1b, #3d3836); box-shadow: 0 16px 34px -16px rgba(120, 10, 15, 0.7);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s;
}
.ws-pill:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(120, 10, 15, 0.75); }
.ws-pill-art { position: relative; width: 74px; height: 42px; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, #ff8f6b 0%, #ffb59a 60%, #ffe0cc 100%); }
.ws-pill-art i { position: absolute; display: block; }
.ws-pill-art i:nth-child(1) { width: 9px; height: 9px; border-radius: 50%; background: #fff8e8; top: 8px; right: 16px; box-shadow: 0 0 10px #fff3cf; }
.ws-pill-art i:nth-child(2) { width: 70px; height: 40px; left: -10px; bottom: -26px; border-radius: 50%; background: #c4000c; }
.ws-pill-art i:nth-child(3) { width: 60px; height: 36px; right: -16px; bottom: -24px; border-radius: 50%; background: #9a0009; }
.ws-pill-text { font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.ws-pill-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); transition: transform 0.25s; }
.ws-pill:hover .ws-pill-go { transform: translateX(3px); }

/* ilustrasi: bola gradien + HP + dokumen melayang */
.ws-visual { grid-area: visual; position: relative; align-self: stretch; min-height: 430px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb.o1 { width: 380px; height: 380px; background: radial-gradient(circle at 35% 35%, #ffe3e4 0%, #ffb3b8 38%, rgba(255, 179, 184, 0) 70%); filter: blur(6px); animation: orbFloat 16s ease-in-out infinite alternate; }
.orb.o2 { width: 300px; height: 300px; margin: 120px 0 0 140px; background: radial-gradient(circle, #f6c9dc 0%, rgba(246, 201, 220, 0) 68%); filter: blur(16px); animation: orbFloat 19s ease-in-out infinite alternate-reverse; }
.orb.o3 { width: 260px; height: 260px; margin: -150px 160px 0 0; background: radial-gradient(circle, #f8d9c3 0%, rgba(248, 217, 195, 0) 66%); filter: blur(18px); animation: orbFloat 23s ease-in-out infinite alternate; }
:root[data-theme="dark"] .orb { opacity: 0.45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .orb { opacity: 0.45; } }
@keyframes orbFloat { from { transform: translate3d(-10px, 6px, 0) scale(1); } to { transform: translate3d(14px, -12px, 0) scale(1.07); } }

.ws-phone {
  position: relative; z-index: 1; width: 168px; height: 330px; border-radius: 34px; padding: 26px 10px 10px;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 70px -30px rgba(30, 20, 18, 0.45), inset 0 0 0 5px color-mix(in srgb, var(--ink) 6%, transparent);
  transform: rotate(-8deg); animation: phoneBob 7s ease-in-out infinite;
}
.ws-notch { position: absolute; top: 11px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.ws-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--screen); padding: 30px 18px; display: grid; align-content: start; gap: 11px; }
.ws-screen i { display: block; height: 7px; border-radius: 4px; background: var(--doc-line); }
.ws-screen i:nth-child(2) { width: 70%; height: 11px; background: color-mix(in srgb, var(--lav) 80%, transparent); }
.ws-screen i:nth-child(4) { width: 85%; }
.ws-screen i:nth-child(5) { width: 55%; }
.ws-scanline { position: absolute; left: 10px; right: 10px; height: 3px; top: 20%; border-radius: 3px; background: linear-gradient(90deg, transparent, #ee010d, #ff7a3d, transparent); box-shadow: 0 0 14px #ff6b72; animation: sweep 3.6s ease-in-out infinite; }

.ws-doc { position: absolute; z-index: 2; display: grid; align-content: start; gap: 8px; padding: 16px 14px; border-radius: 12px; background: var(--doc); border: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(30, 20, 18, 0.4); }
.ws-doc b { display: block; height: 12px; width: 60%; border-radius: 4px; background: var(--glow); margin-bottom: 4px; }
.ws-doc i { display: block; height: 6px; border-radius: 3px; background: var(--doc-line); }
.ws-doc i:last-child { width: 62%; }
.ws-doc.d1 { width: 138px; height: 176px; right: 2%; top: 14%; transform: rotate(9deg); animation: docFloat 8s ease-in-out infinite; }
.ws-doc.d2 { width: 112px; height: 140px; left: 0; bottom: 10%; transform: rotate(-13deg); opacity: 0.92; animation: docFloat 10s ease-in-out -3s infinite reverse; }
@keyframes phoneBob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-10px); } }
@keyframes docFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.ws-spark { position: absolute; z-index: 3; width: 12px; height: 12px; background: var(--glow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.2s ease-in-out infinite; }
.ws-spark.s1 { top: 10%; left: 22%; }
.ws-spark.s2 { bottom: 18%; right: 14%; width: 16px; height: 16px; animation-delay: -1.2s; }
.ws-spark.s3 { top: 52%; left: 8%; width: 9px; height: 9px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* ================= Angka, kartu manfaat, cara kerja ================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.stat { padding: 18px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); display: grid; gap: 2px; }
.stat b { font-family: var(--serif); font-weight: var(--display-weight); font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13.5px; }

.why-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 64px; }
.why-sub { font-family: var(--serif); font-weight: var(--display-weight); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.why-head p { margin: 0; max-width: 40ch; font-size: 14.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.feature {
  position: relative; text-align: left; display: grid; gap: 10px; align-content: start; padding: 24px; min-height: 230px; border-radius: 26px; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s, border-color 0.3s;
}
.feature::before { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; top: -110px; border-radius: 50%; background: var(--f-tint, var(--lav)); opacity: 0.45; filter: blur(34px); transition: transform 0.6s, opacity 0.3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.feature:hover::before { transform: scale(1.3) translate(-16px, 16px); opacity: 0.7; }
.f-num { position: absolute; top: 20px; right: 22px; font-family: var(--serif); font-weight: 300; font-size: 20px; color: var(--muted); opacity: 0.8; }
.f-icon { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-solid); color: var(--f-ink, var(--lav-strong)); box-shadow: var(--shadow); }
.feature h3 { position: relative; font-family: var(--serif); font-weight: var(--display-weight); font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; margin-top: 8px; }
.feature p { position: relative; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature .more { position: relative; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--f-ink, var(--lav-strong)); display: inline-flex; gap: 6px; }
.feature .more::after { content: "→"; transition: transform 0.25s; }
.feature:hover .more::after { transform: translateX(4px); }

.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line-strong); scroll-margin: 120px; border-radius: 4px; }
.how li { display: grid; gap: 4px; padding: 24px 24px 8px 0; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.how-n { font-family: var(--serif); font-weight: 300; font-size: 42px; line-height: 1; color: var(--lav-strong); }
.how b { font-size: 16px; }
.how span:last-child { color: var(--muted); font-size: 14px; }
.how.pulse { animation: howPulse 1.6s ease; }
@keyframes howPulse { 0% { background: transparent; } 30% { background: color-mix(in srgb, var(--lav) 35%, transparent); } 100% { background: transparent; } }

.compare-row { display: flex; justify-content: center; margin-top: 28px; }
.why .link-btn { font: inherit; font-size: 14px; font-weight: 650; color: var(--lav-strong); background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--lav-strong) 40%, transparent); }

/* ================= Responsif: tablet & HP ================= */
@media (max-width: 1080px) {
  .why-show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top top" "title visual" "lead visual" "chips cta"; }
  .ws-title { margin-right: -12%; }
  .ws-lead { justify-self: start; }
}
@media (max-width: 760px) {
  .why, .why-m { padding: 8px 16px 32px; margin-top: 16px; }
  .why-show { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "title" "visual" "lead" "chips" "cta"; min-height: 0; padding: 20px 20px 22px; border-radius: 28px; gap: 16px; }
  .ws-meta { display: none; }
  .ws-title { margin: 0; font-size: clamp(40px, 12vw, 58px); }
  .ws-visual { min-height: 300px; margin: -6px -6px 0; }
  .ws-phone { width: 128px; height: 252px; border-radius: 28px; padding: 22px 8px 8px; }
  .ws-screen { border-radius: 20px; padding: 22px 14px; gap: 9px; }
  .ws-doc.d1 { width: 106px; height: 136px; right: 4%; top: 10%; }
  .ws-doc.d2 { width: 88px; height: 110px; left: 4%; }
  .orb.o1 { width: 280px; height: 280px; }
  .orb.o2 { width: 220px; height: 220px; margin: 90px 0 0 100px; }
  .orb.o3 { width: 200px; height: 200px; margin: -110px 110px 0 0; }
  .ws-lead { justify-self: start; font-size: 15px; }
  .ws-pill { justify-self: stretch; justify-content: space-between; }
  .stats { gap: 8px; }
  .stat { padding: 14px 12px; border-radius: 18px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 12px; line-height: 1.35; }
  .why-head { display: block; margin-top: 40px; }
  .why-head p { margin-top: 8px; }
  /* kartu manfaat: geser horizontal */
  .feature-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 4px 16px 14px; scroll-padding: 16px; scrollbar-width: none; }
  .feature-grid::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; min-height: 220px; }
  .feature:hover { transform: none; }
  .how { grid-template-columns: 1fr; margin-top: 32px; }
  .how li { padding: 18px 0 8px; }
  .how li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.why-m { max-width: 560px; }

/* ================= Popup halus ================= */
.sheet-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); opacity: 0; transition: opacity 0.34s ease; }
.sheet-modal.open { opacity: 1; }
.sheet-modal:not(.open) { pointer-events: none; }
.sheet-card {
  position: relative; width: min(620px, 100%); max-height: min(88vh, 780px); overflow: auto; overscroll-behavior: contain;
  border-radius: 32px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(26px) scale(0.96); opacity: 0.4; transition: transform 0.55s cubic-bezier(.16, 1, .3, 1), opacity 0.3s ease;
}
.sheet-modal.open .sheet-card { transform: none; opacity: 1; }
.sheet-grip { display: none; }
.sheet-art { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; background: var(--art, var(--glow)); }
.sheet-art::after { content: ""; position: absolute; inset: 0; background: var(--art-shade); }
.art-orb { position: absolute; width: 220px; height: 220px; left: -50px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%); animation: orbFloat 9s ease-in-out infinite alternate; }
.art-orb.b { width: 160px; height: 160px; left: auto; right: 40px; bottom: auto; top: -70px; animation-duration: 12s; animation-direction: alternate-reverse; }
.sheet-art .art-icon { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.88); color: #ee010d; box-shadow: 0 18px 40px -16px rgba(120, 10, 15, 0.5); }
.sheet-modal.open .art-icon { animation: artPop 0.6s 0.1s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes artPop { from { transform: scale(0.5) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-text { padding: 24px 34px 32px; }
.sheet-kicker { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.sheet-card h2 { margin: 0; font-family: var(--serif); font-weight: var(--display-weight); font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; }
.sheet-body { margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.sheet-body p { margin: 0 0 14px; }
.sheet-body .sheet-lead { font-size: 16px; color: var(--ink); }
.sheet-body ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sheet-body li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--lav-soft) 70%, transparent); }
.sheet-body li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-strong); font-size: 13px; font-weight: 800; }
.sheet-body > *, .sheet-body li { opacity: 0; }
.sheet-modal.open .sheet-body > *, .sheet-modal.open .sheet-body li { animation: riseIn 0.55s var(--d, 0ms) cubic-bezier(.16, 1, .3, 1) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sheet-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); color: #1e1c1b; transition: transform 0.25s, background 0.25s; }
.sheet-close:hover { transform: rotate(90deg); background: #fff; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13.5px; }
.compare th, .compare td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.compare td:nth-child(2) { color: var(--mint-strong); font-weight: 700; }
.compare td:nth-child(3) { color: var(--muted); }

/* HP: lembar muncul dari bawah, bisa ditarik turun */
@media (max-width: 640px) {
  .sheet-modal { place-items: end center; padding: 0; }
  .sheet-card { width: 100%; max-height: 90vh; border-radius: 28px 28px 0 0; border-bottom: 0; transform: translateY(100%); opacity: 1; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-grip { display: block; position: absolute; top: 9px; left: 50%; z-index: 3; width: 42px; height: 5px; margin-left: -21px; border-radius: 5px; background: rgba(255, 255, 255, 0.75); }
  .sheet-art { height: 150px; }
  .sheet-text { padding: 20px 22px 28px; }
  .sheet-card h2 { font-size: 26px; }
}

html.modal-lock, html.modal-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sheet-modal, .sheet-card, .art-icon, .art-orb, .feature, .orb, .ws-phone, .ws-doc, .ws-spark, .ws-scanline, .sheet-body > *, .sheet-body li { transition: none !important; animation: none !important; opacity: 1; }
}
@media (max-width: 760px) { .stat b { font-size: 26px; overflow-wrap: anywhere; } }
/* tema gelap: pil CTA merah logo agar tidak tenggelam di kartu gelap */
:root[data-theme="dark"] .ws-pill { background: linear-gradient(135deg, #c4000c, #ee010d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-pill { background: linear-gradient(135deg, #c4000c, #ee010d); } }

/* ---------- Formulir kontak (contact.js) di popup bersama ---------- */
.sheet-modal[data-variant="form"] .sheet-art { height: 120px; }
.sheet-modal[data-variant="form"] .art-icon, .sheet-modal[data-variant="thanks"] .art-icon { width: 68px; height: 68px; border-radius: 22px; }
.sheet-modal[data-variant="form"] .sheet-text { padding-top: 20px; }
.ct-form { display: grid; gap: 14px; }
.ct-form .sheet-lead { margin: 0 0 2px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ct-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ct-hint { font-size: 12px; color: var(--muted); }
.ct-input {
  width: 100%; min-width: 0; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ct-input::placeholder { color: var(--muted); }
.ct-input:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.ct-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); background: var(--surface-solid); }
.ct-input.bad { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); animation: ctShake 0.35s; }
select.ct-input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.ct-msg { resize: vertical; min-height: 120px; max-height: 340px; }
.ct-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.ct-foot { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-top: 2px; }
.ct-note { margin: 0; flex: 1 1 220px; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ct-note svg { flex: none; margin-top: 2px; }
.ct-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ct-send { gap: 8px; padding: 0 22px; }
.ct-form.busy .ct-send svg { animation: ctFly 0.9s ease-in-out infinite; }
.ct-mail { color: var(--ink); word-break: break-all; }
.ct-spam { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; background: color-mix(in srgb, var(--lav-soft) 70%, transparent); }
.ct-spam svg { flex: none; margin-top: 2px; color: var(--muted); }
.ct-done { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.sheet-modal[data-variant="thanks"] .art-icon { color: #fff; background: var(--primary); }
.sheet-modal.open[data-variant="thanks"] .art-icon { animation: artPop 0.7s 0.1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes ctShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes ctFly { 50% { transform: translate(3px, -3px); } }
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-input { font-size: 16px; } /* iOS tidak memperbesar halaman saat mengetik */
  .sheet-modal[data-variant="form"] .sheet-art { height: 112px; padding-top: 10px; }
  .sheet-modal[data-variant="form"] .art-icon { width: 56px; height: 56px; border-radius: 18px; }
  .ct-foot .ct-send, .ct-done .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ct-input.bad, .ct-form.busy .ct-send svg { animation: none; } }

/* ---------- popup cocokkan kode (HP) ---------- */
.sheet-modal[data-variant="confirm"] .sheet-art { height: 120px; }
.sheet-modal[data-variant="confirm"] .art-icon { width: 64px; height: 64px; border-radius: 20px; }
.confirm-code { display: grid; place-items: center; margin: 4px 0 18px; padding: 18px 12px; border-radius: 18px; background: color-mix(in srgb, var(--lav-soft) 70%, transparent); }
.confirm-code .sas { font-size: 40px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: var(--ink); }
.confirm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-acts .btn { height: 48px; font-size: 15px; }
