/* wafour.com AI patch - main page section (3 cards) + header menu tweaks */

[data-ai-hidden] { display: none !important; }

/* header dropdown: slightly wider so "Snowpea Browser" never wraps */
header .dropdown-menu:has(> a[data-ai-link]) { min-width: 190px; }
header .dropdown-menu a[data-ai-link] { white-space: nowrap; }

.aip {
  background: #fff; padding: 10px; margin: 50px 0;
  font-family: Montserrat, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #181818;
}
.aip-wrap { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.aip *, .aip *::before, .aip *::after { box-sizing: border-box; }

.aip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 36px; }
.aip-title { font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 600; margin: 0; color: #181818; line-height: 1.2; }
.aip-sub { margin: 8px 0 0; font-size: 16px; font-weight: 300; line-height: 27px; color: #181818; }
.aip-logo { height: 22px; width: auto; flex: none; margin-bottom: 8px; }

.aip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aip-card {
  display: flex; flex-direction: column; padding: 0; border-radius: 24px; overflow: hidden;
  background: #f5f6f8; border: 1px solid #e7e9ee;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.aip-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, #e7e9ee); box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--c) 55%, transparent); }
.aip-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 24px; }
.aip-name { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 22px/1.3 Montserrat, sans-serif; color: #181818; }
.aip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.aip-tag { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.5; color: #181818; word-break: keep-all; }
.aip-desc { margin: 0 0 18px; font-size: 14px; font-weight: 300; line-height: 24px; color: #444; word-break: keep-all; }
.aip-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.aip-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #181818; }
.aip-check { flex: none; position: relative; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, #fff); border: 1px solid color-mix(in srgb, var(--c) 55%, #fff); }
.aip-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* CTA: the site's outlined pill */
.aip-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: calc(0.667em + 2px) calc(1.333em + 2px); border-radius: 50px; border: 1px solid #181818; background: #fff; color: #181818;
  font: 400 14px/1.2 Montserrat, "Noto Sans KR", sans-serif; text-decoration: none; transition: background 0.3s, color 0.3s;
}
.aip-cta i { font-style: normal; font-size: 18px; line-height: 1; transition: transform 0.3s; }
.aip-cta:hover { background: #181818; color: #fff; }
.aip-cta:hover i { transform: translateX(3px); }
.aip-cta:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

/* promo art: edge-to-edge at the top of the card, one legible chip */
.aip-promo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 23px 23px 0 0; background: #0b0c10; }
.aip-promo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.aip-card:hover .aip-promo img { transform: scale(1.04); }
.aip-promo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, rgba(8, 9, 13, 0.6), transparent); pointer-events: none; }
.aip-chip {
  position: absolute; z-index: 1; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  font: 600 15px/1.2 Montserrat, "Noto Sans KR", sans-serif; color: #fff; white-space: nowrap; max-width: calc(100% - 36px);
  background: rgba(18, 20, 28, 0.55); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.aip-chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

@media (max-width: 1023px) {
  .aip-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .aip-title { font-size: 28px; }
  .aip-logo { display: none; }
  .aip-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aip *, .aip *::before, .aip *::after { animation: none !important; transition-duration: 0.01s !important; }
}

/* KO: never split words */
.aip, .aip * { word-break: keep-all; overflow-wrap: anywhere; }
.aip-name, .aip-tag, .aip-desc, .aip-title, .aip-sub { text-wrap: balance; }
