/* =============================
   쿠가세 FAQ - Stylesheet
   ============================= */

:root {
  --pink-50: #FFF5F8;
  --pink-100: #FFE0EC;
  --pink-200: #FFD6E5;
  --pink-300: #FFADCB;
  --pink-500: #FF4D8D;
  --pink-600: #E5246B;
  --pink-700: #B81854;
  --ink: #1A1A1A;
  --ink-2: #444;
  --ink-3: #777;
  --line: #EAEAEA;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(255, 77, 141, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 77, 141, 0.12);
  --shadow-lg: 0 20px 50px rgba(255, 77, 141, 0.18);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum';
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

button { font-family: inherit; }

/* HEADER (shared with index) */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--pink-500); color: var(--white);
  border-radius: 8px; font-weight: 900; font-size: 16px;
}

.logo-mark.sm { width: 28px; height: 28px; font-size: 14px; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}

.nav-links a:hover { color: var(--pink-500); }
.nav-links a.active { color: var(--pink-500); }

/* FAQ HERO */
.faq-hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 700px 350px at 70% 50%, var(--pink-50), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.faq-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.breadcrumb {
  display: flex; gap: 8px;
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--pink-600); font-weight: 600; }

.hero-badge {
  display: inline-block;
  padding: 7px 14px;
  background: var(--white);
  border: 1.5px solid var(--pink-500);
  color: var(--pink-600);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.faq-hero-text h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.faq-hero-text p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.65;
}

.faq-hero-art {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  filter: drop-shadow(0 16px 32px rgba(255,77,141,0.16));
}

/* SECTIONS */
.section { padding: 80px 0; }

.section-head { text-align: center; margin-bottom: 50px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  color: var(--pink-600);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--pink-50);
  border-radius: 999px;
}

.exclusive-tag { background: var(--ink); color: var(--pink-300); }

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
}

/* FAQ TABS */
.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.faq-tab {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-tab:hover {
  border-color: var(--pink-300);
  color: var(--pink-600);
}

.faq-tab.active {
  background: var(--pink-500);
  color: var(--white);
  border-color: var(--pink-500);
}

/* FAQ ACCORDION */
.faq-container { max-width: 900px; margin: 0 auto; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item[open] {
  border-color: var(--pink-500);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: var(--pink-50); }

.q-num {
  font-family: 'Pretendard', sans-serif;
  font-weight: 900;
  color: var(--pink-500);
  background: var(--pink-50);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0;
}

.q-text {
  flex: 1;
  line-height: 1.45;
}

.q-icon {
  font-size: 28px;
  font-weight: 300;
  color: var(--pink-500);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .q-icon {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 24px 22px 78px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.faq-body p + p { margin-top: 10px; }
.faq-body strong { color: var(--ink); font-weight: 700; }

.faq-tip {
  background: var(--pink-50);
  border-left: 3px solid var(--pink-500);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 14px;
  font-size: 14px;
}

.tip-list {
  padding-left: 22px;
  margin-top: 10px;
}

.tip-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.tip-list li::marker {
  color: var(--pink-500);
  font-weight: 800;
}

/* CALCULATOR */
.calc-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-50) 100%);
}

.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--pink-100);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-art {
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 6px 16px rgba(255,77,141,0.25));
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.input-with-suffix input:focus {
  outline: none;
  border-color: var(--pink-500);
}

.input-with-suffix .suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
}

.form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF4D8D' d='M6 8L0 0h12z'/%3E%3C/svg%3E") right 16px center/12px no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-row select:focus {
  outline: none;
  border-color: var(--pink-500);
}

/* CALC RESULT */
.calc-result {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.result-row .r-val {
  font-weight: 800;
  color: var(--white);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.result-row.r-dc .r-val { color: var(--pink-300); }

.result-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 4px 0;
}

.result-row.r-total {
  margin-top: 4px;
}

.result-row.r-total span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.result-row.r-total .r-val {
  font-size: 24px;
  color: var(--pink-300);
}

.result-row.r-save .r-val {
  font-size: 18px;
  color: var(--pink-300);
}

.result-pct {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
}

.pct-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pct-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-300));
  border-radius: 999px;
  transition: width 0.4s ease;
}

#pctLabel {
  font-size: 13px;
  color: var(--pink-300);
  font-weight: 700;
}

.result-monthly {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

/* TIPS */
.tips-section { background: var(--pink-50); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.tip-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--pink-100);
  transition: all 0.25s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-200);
}

.tip-art {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
}

.tip-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tip-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  padding: 90px 0;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, var(--pink-100), transparent 70%);
}

.final-cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.final-cta > .container > p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 30px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--pink-500);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.015em;
  box-shadow: 0 8px 20px rgba(255,77,141,0.35);
}

.cta-btn:hover {
  background: var(--pink-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,77,141,0.45);
}

.cta-btn svg { transition: transform 0.2s ease; }
.cta-btn:hover svg { transform: translateX(4px); }

.cta-btn-lg {
  display: inline-flex;
  padding: 20px 36px;
  font-size: 18px;
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--white);
}

.footer-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--pink-300); }

.footer-copy {
  font-size: 13px;
  width: 100%;
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .faq-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .faq-hero-art { max-width: 220px; margin: 0 auto; order: -1; }
  .section { padding: 60px 0; }
  .calc-wrap { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-item summary { padding: 18px 18px; font-size: 15px; gap: 12px; }
  .faq-body { padding: 0 18px 18px 18px; }
  .q-num { width: 32px; height: 32px; font-size: 12px; }
}

@media (max-width: 540px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .tips-grid { grid-template-columns: 1fr; }
  .faq-tabs { gap: 6px; }
  .faq-tab { padding: 7px 12px; font-size: 13px; }
  .calc-wrap { padding: 20px; }
  .result-row.r-total .r-val { font-size: 20px; }
}
