/* =====================
   RESET & BASE
===================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  background: #f6f7f8;
  color: #171717;
  -webkit-tap-highlight-color: transparent;
}

/* =====================
   LAYOUT
===================== */
.container {
  max-width: 980px;
  margin: auto;
  padding: clamp(16px, 4vw, 28px);
}

.center {
  text-align: center;
}

/* =====================
   BRAND / HEADINGS
===================== */
h1 {
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 14px 0 10px;

  /* Suankularb Pink → Sky Blue */
  background: linear-gradient(
    90deg,
    #f3a6c8 0%,
    #d9b7ee 45%,
    #9ecbff 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 2px 6px rgba(243,166,200,0.25),
    0 4px 14px rgba(158,203,255,0.25);
}

.subtitle {
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.5;
}

.small {
  font-size: 0.75rem;
  color: #737373;
}

/* =====================
   PRODUCT GRID
===================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================
   CARDS
===================== */
.card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 26px;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.08),
    0 6px 16px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  height: clamp(180px, 40vw, 230px);
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: #525252;
  line-height: 1.5;
}

/* =====================
   BUTTONS
===================== */
button {
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 12px 18px;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

button:active {
  transform: scale(0.96);
}

.btn-primary {
  background: #171717;
  color: white;
}

.btn-primary:hover {
  background: #262626;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: #e5e7eb;
  color: #171717;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-outline {
  background: white;
  border: 1px solid #d4d4d4;
}

.btn-outline:hover {
  background: #f3f4f6;
}

/* =====================
   FORMS
===================== */
label {
  display: block;
  font-size: 0.85rem;
  color: #525252;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 13px 15px;
  margin-top: 6px;
  border-radius: 16px;
  border: 1px solid #d4d4d4;
  font-size: 0.9rem;
  background: white;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #9ecbff;
  box-shadow:
    0 0 0 3px rgba(158,203,255,0.35);
}

.hint {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 6px;
}

.error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* =====================
   BUTTON ROW
===================== */
.button-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* =====================
   SUCCESS CARD
===================== */
.card.inline {
  display: inline-block;
  padding: 22px;
}

/* =====================
   PRIVACY POLICY MODAL
===================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay.hidden {
  display: none;
}

.modal-card {
  background: white;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.3);
  animation: modalPop 0.25s ease-out;
}

.modal-card h2 {
  margin-top: 0;
  font-size: 1.35rem;

  background: linear-gradient(
    90deg,
    #f3a6c8,
    #9ecbff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-card ul {
  padding-left: 18px;
}

.modal-card li {
  margin-bottom: 8px;
  font-size: 0.88rem;
}

@keyframes modalPop {
  from {
    transform: scale(0.95) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
