:root {
  --ivory: #FDFAF7;
  --milk: #FFFDFB;
  --cream: #FDF6F3;
  --pale: #F7DDD5;
  --muted: #D4A5A0;
  --mauve: #A88A8A;
  --rose: #C95567;
  --burgundy: #9B3348;
  --gold: #C9A961;
  --ink: #2A1E1E;
  --charcoal: #3A3230;
  --line: rgba(155, 51, 72, .13);
  --line-soft: rgba(42, 30, 30, .08);
  --shadow: 0 28px 82px rgba(94, 51, 48, .13);
  --shadow-soft: 0 16px 48px rgba(94, 51, 48, .09);
  --display: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  --kr: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --sans: "Outfit", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --section: clamp(88px, 10vw, 144px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(247,221,213,.58), transparent 28vw),
    radial-gradient(circle at 88% 18%, rgba(201,169,97,.13), transparent 26vw),
    linear-gradient(180deg, var(--ivory), #fbf5f1 48%, var(--ivory));
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .30;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155,51,72,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,51,72,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: rgba(201,85,103,.14); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
::selection { background: rgba(201,85,103,.18); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
.cursor-glow {
  position: fixed;
  z-index: -1;
  left: var(--orb-x, 76%);
  top: var(--orb-y, 20%);
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: .20;
  filter: blur(46px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247,221,213,.88), rgba(201,85,103,.12) 44%, transparent 72%);
}
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: padding .2s ease, background .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { padding: 9px 0; background: rgba(253,250,247,.82); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line-soft), 0 14px 36px rgba(94,51,48,.08); }
.nav-shell {
  width: min(1280px, calc(100% - 24px));
  min-height: 64px;
  margin-inline: auto;
  padding: 0 12px 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(155,51,72,.11);
  border-radius: 999px;
  background: rgba(255,253,251,.78);
  box-shadow: inset 0 1px 0 rgba(255,253,251,.85);
}
.wordmark { position: relative; display: inline-flex; align-items: baseline; font-family: var(--brand); font-size: 34px; line-height: 1; letter-spacing: -.07em; }
.wordmark span { font-weight: 760; }
.wordmark em { color: var(--rose); font-style: italic; font-weight: 620; }
.wordmark::after { content: ""; position: absolute; right: 0; bottom: -7px; width: 32px; height: 2px; border-radius: 99px; background: var(--rose); }
.site-nav { justify-self: center; display: flex; gap: clamp(18px, 3vw, 40px); color: rgba(58,50,48,.62); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.site-nav a:hover { color: var(--rose); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-toggle { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(253,246,243,.72); color: var(--burgundy); font-weight: 800; cursor: pointer; }
.nav-cta { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 99px; background: var(--ink); color: var(--ivory); font-size: 13px; font-weight: 800; box-shadow: 0 13px 32px rgba(42,30,30,.13); }
.nav-cta, .lang-toggle, .btn, .hero-art, .visual-card, .match-card, .memory-media, .result-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
.nav-cta:hover, .lang-toggle:hover, .btn:hover { transform: translateY(-2px); }

.hero { min-height: 100svh; padding: clamp(110px, 10vw, 138px) 0 clamp(72px, 8vw, 104px); display: grid; align-items: center; }
.hero-shell { display: grid; grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); gap: clamp(44px, 7vw, 92px); align-items: center; transform: translateY(-32px); }
.hero-copy { max-width: 610px; }
.eyebrow { margin: 0 0 18px; color: var(--burgundy); font-size: 11px; line-height: 1.1; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; text-wrap: balance; white-space: pre-line; }
h1 { margin-bottom: 24px; font-size: clamp(58px, 6.8vw, 92px); line-height: .92; }
h2 { margin-bottom: 18px; font-size: clamp(44px, 6vw, 78px); line-height: .94; }
h3 { text-wrap: balance; }
.hero-lede, .section-intro p:not(.eyebrow), .memory-copy > p, .final-card > p { color: rgba(58,50,48,.72); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.72; letter-spacing: -.012em; }
.hero-lede { max-width: 590px; margin-bottom: 30px; }

.kr-term {
  color: var(--rose);
  font-family: var(--brand);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -.01em;
}
html[data-lang="ko"] h1 .kr-term,
html[data-lang="ko"] h2 .kr-term,
html[data-lang="ko"] h3 .kr-term {
  font-size: .92em;
  font-weight: 540;
}
.brand-note .kr-term,
.section-intro .kr-term,
.match-card p .kr-term,
.memory-copy > p .kr-term,
.chat-answer .kr-term,
.result-card li .kr-term,
.final-card > p .kr-term {
  font-size: .93em;
  font-weight: 520;
}
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action-row.center { justify-content: center; }
.btn { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 25px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; }
.btn-primary { background: var(--rose); color: var(--ivory); box-shadow: 0 18px 44px rgba(201,85,103,.24); }
.btn-ghost { background: rgba(255,253,251,.70); border-color: rgba(155,51,72,.16); color: var(--ink); }
.brand-note { max-width: 600px; margin: 28px 0 0; color: rgba(58,50,48,.60); font-family: var(--sans); font-size: clamp(17px, 1.55vw, 20px); line-height: 1.76; letter-spacing: -.012em; white-space: pre-line; }
.hero-art { position: relative; min-height: 560px; border-radius: 40px; perspective: 1400px; }
.hero-photo { width: 100%; height: 560px; object-fit: cover; object-position: center; border: 1px solid rgba(155,51,72,.10); border-radius: 40px; box-shadow: var(--shadow); }
.hero-art::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,253,251,.55); border-radius: 30px; pointer-events: none; }
.hero-metric, .hero-skip { position: absolute; z-index: 2; border: 1px solid rgba(155,51,72,.12); background: rgba(255,253,251,.82); backdrop-filter: blur(18px); box-shadow: var(--shadow-soft); }
.hero-metric { left: -26px; bottom: 34px; width: 178px; padding: 18px 20px; border-radius: 24px; text-align: center; }
.hero-metric > span { display: block; color: rgba(58,50,48,.64); font-size: 12px; font-weight: 800; }
.hero-metric strong { display: block; margin-top: 8px; color: var(--gold); font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.hero-skip { right: 24px; top: 24px; max-width: 220px; padding: 16px 18px; border-radius: 24px; border-color: rgba(244,143,166,.78); }
.hero-skip > span { color: var(--rose); font-size: 11px; font-weight: 900; letter-spacing: .20em; }
.hero-skip p { margin: 7px 0 0; color: rgba(58,50,48,.68); font-size: 13px; line-height: 1.55; }

.section { padding: var(--section) 0; }
.section-intro { max-width: 850px; margin: 0 auto 46px; text-align: center; }
.section-intro p:not(.eyebrow) { max-width: 700px; margin-inline: auto; }
.image-system { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.visual-card { position: relative; overflow: hidden; min-height: auto; aspect-ratio: 1 / 1.04; border: 1px solid rgba(155,51,72,.11); border-radius: 36px; background: rgba(255,253,251,.76); box-shadow: var(--shadow-soft); }
.visual-card.wide { grid-row: auto; }
.visual-card img { width: 100%; height: 100%; object-fit: cover; }
.visual-card > div { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 18px 20px; border: 1px solid rgba(155,51,72,.12); border-radius: 24px; background: rgba(255,253,251,.82); backdrop-filter: blur(18px); }
.visual-card span { display: block; margin-bottom: 7px; color: var(--burgundy); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.visual-card h3 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.soft-panel { display: grid; place-items: center; padding: clamp(28px, 4vw, 46px); min-height: 330px; text-align: center; }
.soft-panel::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); opacity: .62; box-shadow: 0 0 0 12px rgba(244,143,166,.10); }
.soft-panel .quote { margin: 24px 0 14px; font-family: "Gowun Batang", Georgia, serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.45; color: var(--ink); }
.soft-panel p:last-child { margin: 0; color: rgba(58,50,48,.64); line-height: 1.7; }

.match { background: linear-gradient(180deg, rgba(253,246,243,.74), rgba(253,250,247,.25)); }
.match-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.match-card { overflow: hidden; display: grid; align-content: space-between; min-height: 500px; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(155,51,72,.11); border-radius: 34px; background: rgba(255,253,251,.80); box-shadow: var(--shadow-soft); }
.match-card:first-child, .match-card.product { grid-column: span 2; grid-template-columns: minmax(0, .92fr) minmax(220px, .70fr); gap: 20px; align-items: center; }
.card-number { display: block; margin-bottom: 18px; color: var(--gold); font-family: var(--display); font-size: 42px; line-height: 1; font-weight: 600; }
.label { margin: 0 0 12px; color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: .20em; text-transform: uppercase; }
.match-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(32px, 3.8vw, 50px); line-height: .98; letter-spacing: -.035em; font-weight: 600; }
.match-card p:not(.label) { margin-bottom: 0; color: rgba(58,50,48,.69); line-height: 1.72; }
.match-card figure { margin: 0; overflow: hidden; max-height: 480px; border: 1px solid rgba(155,51,72,.12); border-radius: 28px; background: var(--cream); box-shadow: 0 20px 54px rgba(94,51,48,.11); }
.match-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.match-card .landscape { margin-top: 22px; max-height: none; aspect-ratio: 1.25; }
.match-card .landscape img { object-position: center; }
.verdict-list { display: grid; gap: 10px; margin-top: 28px; }
.verdict-list div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid rgba(155,51,72,.12); border-radius: 20px; background: rgba(253,246,243,.58); }
.verdict-list span { color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.verdict-list div:first-child span { color: var(--gold); }
.verdict-list div:last-child span { color: var(--rose); }
.verdict-list strong { font-size: 14px; }

.memory { padding-bottom: clamp(56px, 6vw, 84px); }
.result { padding-top: clamp(72px, 8vw, 104px); }
.memory-layout, .result-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(44px,7vw,94px); align-items: center; }
.memory-media { overflow: hidden; border: 1px solid rgba(155,51,72,.11); border-radius: 38px; background: var(--cream); box-shadow: var(--shadow); }
.memory-media img { width: 100%; height: 100%; object-fit: cover; }
.memory-copy { max-width: 620px; }
.chat-card { margin-top: 28px; display: grid; gap: 12px; }
.chat-user, .chat-answer { margin: 0; padding: 17px 19px; border-radius: 24px; font-size: 15px; line-height: 1.68; box-shadow: 0 14px 36px rgba(94,51,48,.08); }
.chat-user { justify-self: end; max-width: 360px; background: var(--ink); color: var(--ivory); border-bottom-right-radius: 8px; }
.chat-answer { justify-self: start; max-width: 470px; border: 1px solid rgba(155,51,72,.12); background: rgba(255,253,251,.82); color: rgba(58,50,48,.74); border-bottom-left-radius: 8px; }
.result { background: linear-gradient(180deg, rgba(253,250,247,0), rgba(253,246,243,.82)); }
.result-card { padding: clamp(28px,4vw,44px); border: 1px solid rgba(155,51,72,.12); border-radius: 38px; background: rgba(255,253,251,.84); box-shadow: var(--shadow); }
.result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(155,51,72,.10); }
.result-kicker { color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.result-score { display: inline-flex; align-items: baseline; gap: 1px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(155,51,72,.18); background: rgba(247,221,213,.50); color: var(--burgundy); font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: -.005em; font-variant-numeric: lining-nums tabular-nums; }
.result-score .count { font-size: 18px; font-weight: 800; }
.result-score em { font-style: normal; margin-left: 1px; font-size: 14px; font-weight: 700; opacity: .82; }
.result-card h3 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(34px,4.5vw,60px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.result-card ul { margin: 24px 0 22px; padding: 22px; list-style: none; display: grid; gap: 12px; border: 1px solid rgba(155,51,72,.11); border-radius: 26px; background: rgba(253,246,243,.58); }
.result-card li { position: relative; padding-left: 20px; color: rgba(58,50,48,.72); line-height: 1.62; }
.result-card li::before { content: ""; position: absolute; left: 0; top: .70em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.risk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.risk-row span { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid rgba(155,51,72,.14); border-radius: 999px; background: rgba(253,246,243,.74); color: rgba(58,50,48,.78); font-size: 13px; font-weight: 700; letter-spacing: -.005em; }
.risk-row span:last-child { border-color: rgba(244,143,166,.82); background: rgba(247,221,213,.45); }
.risk-row .kr-term { font-size: 1em; font-weight: 600; letter-spacing: 0; }
.final { min-height: 100svh; display: grid; align-items: center; padding: clamp(92px, 9vw, 124px) 0 clamp(70px, 7vw, 96px); }
.final-card { position: relative; overflow: hidden; padding: clamp(46px,8vw,88px) clamp(24px,7vw,96px); border: 1px solid rgba(155,51,72,.12); border-radius: 42px; color: var(--ivory); text-align: center; background: linear-gradient(180deg, rgba(155,51,72,.42) 0%, rgba(94,51,48,.58) 100%), url("assets/beaful-final-still-v1.webp") center/cover no-repeat; box-shadow: var(--shadow); }
.final-card .eyebrow { color: rgba(253,250,247,.86); }
.final-card h2 { max-width: 820px; margin-inline: auto; color: var(--ivory); text-shadow: 0 2px 28px rgba(42,30,30,.42); }
.final-card > p { max-width: 660px; margin: 0 auto 28px; color: rgba(253,250,247,.94); white-space: pre-line; }
.final-card .kr-term, .final-card > p .kr-term { color: rgba(253,250,247,.96); font-weight: 600; }
.final-card .btn-primary { background: var(--ivory); color: var(--burgundy); box-shadow: 0 18px 44px rgba(42,30,30,.28); }
.final-card .btn-primary:hover { background: #fff; }
.final-card .btn-ghost { color: var(--ivory); background: rgba(253,250,247,.06); border-color: rgba(253,250,247,.55); }
.final-card .btn-ghost:hover { background: rgba(253,250,247,.14); border-color: rgba(253,250,247,.72); }

html[data-lang="ko"] body { font-family: var(--kr); word-break: keep-all; }
html[data-lang="ko"] h1, html[data-lang="ko"] h2, html[data-lang="ko"] h3 { font-family: var(--kr); font-weight: 600; letter-spacing: -.035em; color: rgba(42,30,30,.96); }
html[data-lang="ko"] h1 { max-width: 610px; font-size: clamp(44px,5.15vw,64px); line-height: 1.15; }
html[data-lang="ko"] h2 { font-size: clamp(34px,4.15vw,54px); line-height: 1.22; }
html[data-lang="ko"] .match-card h3, html[data-lang="ko"] .visual-card h3, html[data-lang="ko"] .result-card h3 { font-size: clamp(25px,2.45vw,34px); line-height: 1.26; font-weight: 600; }
html[data-lang="ko"] .brand-note { font-family: var(--kr); line-height: 1.86; }
html[data-lang="ko"] .soft-panel .quote { font-family: "Gowun Batang", var(--kr), serif; line-height: 1.75; }
html[data-lang="ko"] .hero-lede, html[data-lang="ko"] .section-intro p:not(.eyebrow), html[data-lang="ko"] .memory-copy > p, html[data-lang="ko"] .match-card p:not(.label), html[data-lang="ko"] .final-card > p { line-height: 1.86; letter-spacing: -.025em; }

.reveal, .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .hero-shell, .memory-layout, .result-layout { grid-template-columns: 1fr; transform: none; }
  .hero-art { min-height: 520px; }
  .hero-photo { height: 520px; }
  .image-system { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .match-card:first-child, .match-card.product { grid-column: span 2; }
}
@media (max-width: 700px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .nav-shell { min-height: 58px; padding-left: 16px; }
  .wordmark { font-size: 30px; }
  .nav-cta { display: none; }
  .hero { padding-top: 104px; }
  .hero-shell, .hero-copy, .hero-art, .match-card, .visual-card, .result-card { min-width: 0; }
  h1 { max-width: 10.8ch; font-size: clamp(44px,12vw,56px); line-height: .98; }
  h2 { font-size: clamp(38px,11vw,54px); line-height: 1; }
  html[data-lang="ko"] h1 { max-width: 100%; font-size: clamp(34px,8.8vw,43px); line-height: 1.2; }
  html[data-lang="ko"] h2 { font-size: clamp(30px,8vw,40px); line-height: 1.24; }
  .hero-lede, .section-intro p:not(.eyebrow), .memory-copy > p, .final-card > p { font-size: 17px; line-height: 1.72; }
  .action-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-art { min-height: auto; }
  .hero-photo { height: min(88vw, 440px); border-radius: 30px; }
  .hero-metric, .hero-skip { position: static; width: auto; max-width: none; margin-top: 12px; }
  .section { padding: clamp(72px,18vw,100px) 0; }
  .visual-card, .visual-card.wide { min-height: auto; aspect-ratio: .92 / 1; }
  .visual-card > div { left: 14px; right: 14px; bottom: 14px; }
  .match-grid { grid-template-columns: 1fr; }
  .match-card:first-child, .match-card.product { grid-column: auto; grid-template-columns: 1fr; }
  .match-card { min-height: auto; }
  .match-card figure { max-height: 520px; }
  .chat-user, .chat-answer { justify-self: stretch; max-width: none; }
}

/* Center result section so the proof card reads as one composed editorial block. */
@media (min-width: 1001px) {
  .result-layout {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: 28px;
    text-align: center;
  }
  .result-copy {
    max-width: 720px;
    margin-inline: auto;
  }
  .result-card {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor-glow { display: none; }
}

/* Match feature cards read better as a balanced 2x2 editorial grid. */
@media (min-width: 1001px) {
  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-card,
  .match-card:first-child,
  .match-card.product {
    grid-column: auto;
    grid-template-columns: minmax(0, .95fr) minmax(190px, .60fr);
    gap: 22px;
    align-items: center;
    min-height: 452px;
  }
  .match-card:not(.phone-card):not(.product) {
    grid-template-columns: 1fr;
    align-content: space-between;
  }
  .match-card .landscape {
    max-height: 218px;
  }
  .match-card.phone-card figure {
    max-height: 360px;
  }
}
