/* dot.fm · Landing: kartu Say hello (Contact Opsi 2B "Satu kalimat").
   Nilai mengikuti Figma section 494:784610, blok 498:784610, file KdPpR8tbvzljxKaY2SktRd.
   Kalimatnya bergaya kalimat Mix di Font Studio. Warna panel ikut jenis pesan:
   pink untuk feedback, hijau untuk kolaborasi. Huruf benda dari font Corkboard dan Garland. */
.i-message { --i: url("icons-c/message.svg"); }
.i-send { --i: url("icons-c/send.svg"); }
.i-check-lg { --i: url("icons-c/check-lg.svg"); }

.h-hello { --hl-tint: var(--tint-pink); grid-column: 1 / -1; order: 20; gap: 10px; }
.h-hello[data-kind="collab"] { --hl-tint: #e1eac9; }
.h-hello [hidden] { display: none !important; }
.hl-body { display: flex; gap: 12px; min-width: 0; }

/* ---------- panel kalimat ---------- */
.hl-letter { position: relative; flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 28px 28px 24px; background: var(--hl-tint); border-radius: 12px; transition: background-color 0.25s ease; }
.hl-sentence { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.hl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 52px; }
.hl-from:not([hidden]) { animation: hl-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hl-word { flex: none; font-family: var(--font-display); font-size: 44px; line-height: 52px; color: var(--ink); white-space: nowrap; }
.hl-input, .hl-kind { flex: none; height: 44px; padding: 0 14px; background: #ffffff; border: 0; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); font-weight: 500; font-size: 16px; line-height: 20px; color: var(--ink-2); }
.hl-input { min-width: 160px; max-width: 100%; outline: 0; -webkit-appearance: none; appearance: none; transition: box-shadow 0.12s; }
.hl-brand { min-width: 200px; }
.hl-input::placeholder { color: #9a9a9a; opacity: 1; }
.hl-input:focus { box-shadow: inset 0 0 0 1.5px var(--dark), 0 1px 2px rgba(0, 0, 0, 0.06); }
.hl-input[readonly] { cursor: default; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.hl-input:-webkit-autofill { -webkit-text-fill-color: var(--ink-2); box-shadow: inset 0 0 0 40px #ffffff, 0 1px 2px rgba(0, 0, 0, 0.06); }
.hl-input:-webkit-autofill:focus { box-shadow: inset 0 0 0 1.5px var(--dark), inset 0 0 0 40px #ffffff, 0 1px 2px rgba(0, 0, 0, 0.06); }
/* nama kosong saat Send: garis merah yang sama dengan kotak pesan yang salah, tetap merah walau sedang diketik */
.hl-input[aria-invalid="true"], .hl-input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1.5px var(--red-deep), 0 1px 2px rgba(0, 0, 0, 0.06); }
.hl-kind { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background-color 0.12s; }
.hl-kind[aria-expanded="true"] { background: var(--dark); box-shadow: var(--inset-dark); color: #ffffff; }
.hl-kind:disabled { cursor: default; }
.is-sent .hl-kind .icon { display: none; }

/* pilihan jenis pesan */
.hl-menu { position: absolute; z-index: 6; top: 0; left: 0; display: flex; flex-direction: column; gap: 2px; width: 280px; padding: 6px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); animation: hl-pop 0.16s ease-out; }
.hl-menu button { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--ink-2); text-align: left; white-space: nowrap; }
.hl-menu button:hover, .hl-menu button[aria-checked="true"] { background: var(--chip); }
.hl-menu button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--dark); }
.hl-menu button[aria-checked="false"] .icon { visibility: hidden; }

/* baris bawah panel: keterangan di kiri, huruf benda di kanan */
.hl-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hl-note { font-size: 12px; line-height: 18px; color: var(--text-3); }
.hl-papers { position: relative; flex: none; width: 190px; height: 150px; margin-bottom: -10px; pointer-events: none; }
.hl-set { position: absolute; inset: 0; transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.h-hello:not([data-kind="collab"]) .hl-set[data-for="collab"], .h-hello[data-kind="collab"] .hl-set[data-for="feedback"] { opacity: 0; transform: translateY(14px) rotate(-4deg); }
.hl-paper { position: absolute; background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); }
.hl-set[data-for="collab"] .hl-paper { background: #5b6630; }
.hl-paper img { position: absolute; inset: 0; display: block; width: 73%; height: 73%; margin: auto; object-fit: contain; }
.hl-paper.small { left: 86px; top: 18px; width: 92px; height: 92px; border-radius: 10px; transform: rotate(10deg); }
.hl-paper.big { left: 18px; top: 28px; width: 112px; height: 112px; border-radius: 12px; transform: rotate(-7deg); }

/* ---------- formulir ---------- */
.hl-fields { flex: 1 1 0; min-width: 320px; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 6px; }
.hl-field { display: flex; flex-direction: column; gap: 6px; }
.hl-field-msg { flex: 1 1 auto; }
.hl-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hl-label, .hl-error { font-weight: 500; font-size: 12px; line-height: 16px; color: var(--text-3); }
.hl-error { color: var(--red-deep); text-align: right; }
.hl-box { display: block; width: 100%; min-width: 0; padding: 12px 14px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; outline: 0; font-family: inherit; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color 0.12s, box-shadow 0.12s; }
.hl-box::placeholder { color: #9a9a9a; opacity: 1; }
.hl-box:focus { border-color: var(--dark); box-shadow: inset 0 0 0 0.5px var(--dark); }
.hl-box[aria-invalid="true"] { border-color: var(--red-deep); box-shadow: inset 0 0 0 0.5px var(--red-deep); }
.hl-box:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 40px var(--page); }
.hl-message { flex: 1 1 auto; height: 168px; min-height: 168px; resize: none; }
input.hl-box { height: 46px; }
.hl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hl-fine { min-width: 0; font-size: 12px; line-height: 18px; color: var(--text-5); }
.hl-fine.is-error { font-weight: 500; color: var(--red-deep); }
.hl-send { flex: none; }
.hl-send[aria-busy="true"] { cursor: progress; opacity: 0.75; }

/* ---------- setelah terkirim ---------- */
.hl-done { flex: 1 1 0; min-width: 320px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 10px 10px 6px 40px; outline: 0; animation: hl-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hl-check { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); border-radius: 50%; color: #ffffff; }
.hl-check .icon { width: 22px; height: 22px; }
.hl-thanks { max-width: 100%; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 52px; color: var(--ink); overflow-wrap: anywhere; }
.hl-done-text { max-width: 460px; font-size: 15px; line-height: 22px; color: var(--text-3); }
.hl-again { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--red-deep); }
.hl-again:hover { text-decoration: underline; text-underline-offset: 3px; }

@keyframes hl-pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes hl-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hl-from:not([hidden]), .hl-menu, .hl-done { animation: none; }
  .hl-letter, .hl-set { transition: none; }
}

/* ---------- tablet dan HP: kalimat di atas, formulir di bawah (Figma HP 498:784789) ---------- */
@media (max-width: 900px) {
  .hl-body { flex-direction: column; gap: 10px; }
  .hl-letter { flex: none; }
  .hl-base { display: none; }
  .hl-fields { flex: none; min-width: 0; gap: 12px; padding: 4px 2px; }
  /* tinggi kartu ditahan setelah terkirim; isinya di tengah sisa ruang */
  .hl-done { flex: 1 1 auto; min-width: 0; padding: 14px 4px 8px; }
}
@media (max-width: 700px) {
  .hl-letter { padding: 18px 18px 20px; }
  .hl-sentence { gap: 8px; }
  .hl-row { gap: 8px; min-height: 38px; }
  .hl-word { font-size: 30px; line-height: 38px; }
  .hl-input, .hl-kind { height: 38px; padding: 0 12px; font-size: 14px; }
  .hl-input { min-width: 120px; }
  .hl-brand { min-width: 150px; }
  .hl-message { height: 110px; min-height: 110px; }
  .hl-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .hl-fine:not(.is-error) { display: none; }
  .hl-send { width: 100%; }
  .hl-check { width: 40px; height: 40px; }
  .hl-check .icon { width: 20px; height: 20px; }
  .hl-thanks { font-size: 34px; line-height: 40px; }
  .hl-done-text { font-size: 14px; line-height: 20px; }
}
/* iPhone memperbesar halaman saat mengetik di kolom yang hurufnya di bawah 16 px */
@media (pointer: coarse) { .hl-input, .hl-box { font-size: 16px; } }
