@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css");

:root {
  --ink: #0b0b0d;
  --ink-soft: #55555c;
  --paper: #ffffff;
  --paper-soft: #f4f4f6;
  --night: #000000;
  --night-card: #141416;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: rgba(255, 255, 255, 0.64);
  --accent: #f2557f;
  --accent-soft: #ffe1ea;
  --tint-pink: #ffd9e4;
  --tint-mint: #cdf1e2;
  --tint-sky: #d4e8ff;
  --radius-hero: clamp(36px, 6vw, 84px);
  --page-gutter: clamp(16px, 4vw, 40px);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: clip;
  transition: background-color 0.6s var(--ease-out);
}

body.is-night {
  background: var(--night);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.24;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s, color 0.2s;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill:active {
  transform: scale(0.96);
}

.pill-dark {
  background: var(--ink);
  color: #fff;
}

.pill-light {
  background: #fff;
  color: var(--ink);
}

.pill-soft {
  background: var(--paper-soft);
  color: var(--ink);
}

.pill-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: env(safe-area-inset-top) var(--page-gutter) 0;
  box-sizing: content-box;
  color: var(--ink);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.topbar.is-night {
  color: #fff;
}

.topbar.is-night.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar.is-night .topbar-cta {
  background: #fff;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.topbar-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.topbar-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity 0.2s;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  opacity: 1;
}

.topbar-nav a.is-active::after {
  transform: scaleX(1);
}

.topbar-cta {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- 카테고리 오브젝트(투명 일러스트) ---------- */

.obj {
  --size: 120px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0) rotate(var(--rot, 0deg))
    scale(var(--s, 1));
  transition: transform 0.9s var(--ease-out);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
}

.hero-frame {
  --shrink: 0;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--shrink) * var(--radius-hero)) calc(var(--shrink) * var(--radius-hero))
    var(--radius-hero) var(--radius-hero);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--shrink) * 0.06));
  background: linear-gradient(180deg, #f6e8f6 0%, #fde3e4 38%, #ffe8d6 70%, #fff1e4 100%);
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.dune {
  position: absolute;
  border-radius: 50%;
}

.dune-a {
  left: -20%;
  right: 30%;
  bottom: -38%;
  height: 70%;
  background: #f8dccd;
}

.dune-b {
  left: 35%;
  right: -25%;
  bottom: -30%;
  height: 62%;
  background: #f5d2c4;
}

.dune-c {
  left: 10%;
  right: 10%;
  bottom: -52%;
  height: 72%;
  background: #fbe3d7;
}

.hero-scene .obj {
  animation: bob 7s ease-in-out infinite, obj-in 1.1s var(--ease-spring) both;
}

.obj-1 { --size: 190px; --rot: -8deg; left: 6%; bottom: 14%; animation-delay: -1s, 0.1s; }
.obj-2 { --size: 130px; --rot: 10deg; left: 20%; top: 18%; animation-delay: -3s, 0.2s; }
.obj-3 { --size: 170px; --rot: 6deg; right: 7%; bottom: 20%; animation-delay: -2s, 0.15s; }
.obj-4 { --size: 120px; --rot: -10deg; right: 21%; top: 15%; animation-delay: -4s, 0.3s; }
.obj-5 { --size: 140px; --rot: 8deg; left: 31%; bottom: 3%; animation-delay: -5s, 0.25s; }
.obj-6 { --size: 120px; --rot: -6deg; right: 31%; bottom: 5%; animation-delay: -2.5s, 0.35s; }

@keyframes bob {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes obj-in {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 0 var(--page-gutter) 6vh;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 64px);
}

.hero-title span {
  display: block;
  animation: rise 1s var(--ease-out) both;
}

.hero-title span + span {
  animation-delay: 0.12s;
}

.hero-copy p {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
  color: rgba(11, 11, 13, 0.72);
  animation: rise 1s 0.24s var(--ease-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  color: var(--ink);
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- intro ---------- */

.intro {
  position: relative;
  /* 양옆 오브젝트는 섹션 폭 안에서만 보이게 자른다(세로로는 자유롭게 떠다님). */
  overflow-x: clip;
  padding: clamp(96px, 14vw, 168px) 0 clamp(80px, 10vw, 128px);
  scroll-margin-top: 40px;
}

.intro-head,
.themes-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 var(--page-gutter);
  text-align: center;
}

.themes-head p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.eyebrow-muted {
  color: rgba(255, 255, 255, 0.56);
}

.intro-head h2,
.themes-head h2,
.automation-copy h2,
.privacy-head h2,
.finale-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.store-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  gap: 8px;
  margin-top: 16px;
  scroll-margin-top: 100px;
}

.store-row > .pill {
  flex: 1;
  min-width: 0;
  gap: 6px;
  padding-inline: 12px;
  font-size: 14px;
}

.pill-coming {
  position: relative;
  border: 1px solid #d9d9df;
  background: #f5f5f7;
  color: #62626c;
  font-family: inherit;
  opacity: 1;
  cursor: default;
}

.pill-coming:hover,
.pill-coming:active {
  transform: none;
}

.store-status {
  position: absolute;
  top: -9px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e5e5eb;
  font-size: 11px;
  line-height: 1.3;
}

.showcase {
  margin-top: clamp(48px, 7vw, 80px);
}

.showcase-stage {
  --enter: 0;
  --glow: var(--tint-pink);
  position: relative;
  display: grid;
  place-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.showcase-stage[data-tint="mint"] { --glow: var(--tint-mint); }
.showcase-stage[data-tint="sky"] { --glow: var(--tint-sky); }

/* 현재 화면의 테마 색이 휴대폰 뒤에서 은은하게 바뀐다 */
.stage-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(720px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  transform: translate(-50%, -50%) scale(calc(0.7 + var(--enter) * 0.3));
  opacity: calc(0.4 + var(--enter) * 0.6);
  transition: background 0.8s var(--ease-out);
  z-index: 0;
}

.obj-float {
  --size: clamp(96px, 13vw, 180px);
  z-index: 0;
  transition: none;
}

.obj-l1 { --rot: -10deg; left: 4%; top: 6%; }
.obj-l2 { --rot: 8deg; left: 10%; top: 50%; --size: clamp(110px, 15vw, 210px); }
.obj-r1 { --rot: 10deg; right: 6%; top: 10%; }
.obj-r2 { --rot: -6deg; right: 9%; top: 54%; --size: clamp(110px, 15vw, 210px); }

.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 72vw);
  margin: 0;
  /* 섹션에 들어오며 살짝 커지고 올라온다 */
  transform: translateY(calc((1 - var(--enter)) * 60px)) scale(calc(0.92 + var(--enter) * 0.08));
}

.phone-screen {
  position: relative;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: 50px;
  background: #f3f3f5;
  box-shadow: 0 0 0 9px #111114, 0 0 0 11px #2a2a2e, 0 40px 70px -40px rgba(40, 20, 40, 0.4);
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * 8%)) scale(1.02);
  transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-out);
}

.screen.is-leaving {
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * -8%)) scale(0.98);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

.phone-caption {
  margin-top: 34px;
  min-height: 3.2em;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

.pill-track {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 14px auto 0;
  padding: 0 var(--page-gutter);
}

.feature-pill {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.feature-pill:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.feature-pill:active {
  transform: scale(0.96);
}

.feature-pill.is-current {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 20px -12px rgba(0, 0, 0, 0.25);
}

.pill-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.feature-pill.is-current .pill-fill {
  transform: scaleX(var(--progress, 0));
}

.pill-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill-icon {
  flex: none;
  transition: transform 0.35s var(--ease-spring);
}

.feature-pill.is-current .pill-icon {
  color: var(--accent);
  transform: scale(1.08);
}

.autoplay-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.autoplay-toggle:hover {
  color: var(--ink);
}

/* 재생 중에는 일시정지 막대, 멈춘 뒤에는 재생 삼각형 */
.autoplay-icon {
  width: 10px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.autoplay-toggle[aria-pressed="true"] .autoplay-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}

/* ---------- themes: 스크롤하면 펼쳐지는 세 화면 ---------- */

.themes {
  overflow-x: clip;
  padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px);
  scroll-margin-top: 40px;
}

.fan {
  --fan: 0;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(460px, 62vw, 680px);
  margin-top: clamp(40px, 6vw, 72px);
}

.fan-phone {
  position: absolute;
  width: clamp(190px, 24vw, 290px);
  margin: 0;
  text-align: center;
  transition: transform 0.2s linear;
}

.fan-phone img {
  aspect-ratio: 1320 / 2868;
  width: 100%;
  border-radius: clamp(30px, 4vw, 44px);
  box-shadow: 0 0 0 7px #111114, 0 0 0 9px #2a2a2e, 0 36px 60px -36px rgba(40, 20, 40, 0.45);
}

.fan-phone figcaption {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: var(--fan);
}

.fan-center {
  z-index: 2;
  transform: translateY(calc((1 - var(--fan)) * 30px)) scale(calc(0.96 + var(--fan) * 0.04));
}

.fan-left {
  z-index: 1;
  transform: translateX(calc(var(--fan) * -112%)) rotate(calc(var(--fan) * -6deg)) translateY(calc(var(--fan) * 26px));
}

.fan-right {
  z-index: 1;
  transform: translateX(calc(var(--fan) * 112%)) rotate(calc(var(--fan) * 6deg)) translateY(calc(var(--fan) * 26px));
}

/* ---------- automation ---------- */

.automation {
  position: relative;
  padding: clamp(96px, 12vw, 160px) var(--page-gutter);
  color: var(--ink);
  transition: color 0.6s var(--ease-out);
  scroll-margin-top: 20px;
}

body.is-night .automation {
  color: #fff;
}

.automation-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 28% 45%, rgba(242, 85, 127, 0.28), rgba(242, 85, 127, 0) 70%),
    radial-gradient(40% 40% at 78% 60%, rgba(255, 170, 120, 0.16), rgba(255, 170, 120, 0) 70%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

body.is-night .automation-backdrop {
  opacity: 1;
}

.automation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1080px;
  margin: 0 auto;
}

.automation-media {
  justify-self: center;
  width: min(330px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 48px;
  background: #1b1b1e;
  box-shadow: 0 0 0 9px #111114, 0 0 0 11px #2a2a2e, 0 40px 80px -40px rgba(242, 85, 127, 0.6);
}

.automation-copy {
  display: grid;
  gap: 18px;
}

.automation-copy > p,
.automation-points span {
  color: var(--ink-soft);
  transition: color 0.6s var(--ease-out);
}

body.is-night .automation-copy > p,
body.is-night .automation-points span {
  color: var(--night-text);
}

.automation-points {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.automation-points li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.automation-points strong {
  font-size: 17px;
  font-weight: 600;
}

.automation-points span {
  font-size: 14px;
}

.fine-print {
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- privacy ---------- */

.privacy {
  padding: clamp(80px, 10vw, 140px) var(--page-gutter) clamp(64px, 8vw, 96px);
  background: var(--night);
  color: #fff;
  scroll-margin-top: 20px;
}

.privacy-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.privacy-head > p {
  color: var(--night-text);
}

.privacy-art {
  width: clamp(110px, 14vw, 150px);
  height: auto;
  margin-bottom: 4px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: clamp(48px, 7vw, 80px) auto 0;
}

.privacy-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px 30px;
  border-radius: 32px;
  background: var(--night-card);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}

.privacy-card:hover {
  transform: translateY(-4px);
  background: #1b1b1e;
}

.card-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.privacy-card h3 {
  font-size: 21px;
}

.privacy-card p:not(.card-label) {
  font-size: 15px;
  color: var(--night-text);
}

.card-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- faq(details) ---------- */

.faq {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 72px) var(--page-gutter) clamp(96px, 12vw, 150px);
  border-radius: 0 0 var(--radius-hero) var(--radius-hero);
  background: var(--night);
  color: #fff;
  scroll-margin-top: 40px;
}

.faq-head,
.faq-list {
  max-width: 1080px;
  margin: 0 auto;
}

.faq-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.faq-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.text-link {
  font-size: 14px;
  color: var(--night-text);
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: #fff;
}

.faq-item {
  border-top: 1px solid var(--night-line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--night-line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.6;
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease-out);
}

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

.faq-item summary:hover {
  color: rgba(255, 255, 255, 0.8);
}

.faq-answer {
  max-width: 820px;
  padding: 0 4px 22px;
}

.faq-item[open] .faq-answer {
  animation: open-down 0.35s var(--ease-out);
}

@keyframes open-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq-answer p {
  font-size: 15px;
  color: var(--night-text);
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ---------- finale ---------- */

/* 검정 무대의 둥근 아랫단이 하늘 장면 위에 얹힌다 */
.finale {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--radius-hero) * -1);
  padding: calc(var(--radius-hero) + clamp(88px, 11vw, 140px)) var(--page-gutter) 0;
  background: linear-gradient(180deg, #e7e9f5 0%, #f6e6ef 45%, #ffe8dc 100%);
  isolation: isolate;
}

.finale-copy {
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.finale-scene {
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  z-index: -1;
}

.finale-scene .obj {
  --size: 190px;
  bottom: -54px;
  transform: translateY(calc((1 - var(--rise, 1)) * 120px)) rotate(var(--rot, 0deg));
}

.obj-f1 { --rot: -8deg; left: 1%; }
.obj-f2 { --rot: 8deg; left: 21%; --size: 210px; }
.obj-f3 { --rot: -10deg; left: 42%; }
.obj-f4 { --rot: 6deg; left: 61%; --size: 210px; }
.obj-f5 { --rot: -6deg; right: 1%; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1080px;
  margin: clamp(72px, 9vw, 112px) auto 0;
  padding: 22px 0 210px;
  border-top: 1px solid rgba(11, 11, 13, 0.08);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

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

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  /* 좁은 화면에서는 도움말 링크만 남긴다. */
  .topbar-nav {
    gap: 0;
  }

  .topbar-nav a:not([href="./support"]) {
    display: none;
  }

  .topbar {
    gap: 16px;
  }

  .automation-layout {
    grid-template-columns: 1fr;
  }

  .automation-media {
    order: 2;
    width: min(300px, 80%);
  }

  .privacy-cards {
    grid-template-columns: 1fr;
  }

  .obj-l1,
  .obj-r1 {
    top: 0;
  }

  .obj-l2 {
    left: -2%;
  }

  .obj-r2 {
    right: -2%;
  }

  .fan-left {
    transform: translateX(calc(var(--fan) * -62%)) rotate(calc(var(--fan) * -8deg)) translateY(calc(var(--fan) * 30px)) scale(0.86);
  }

  .fan-right {
    transform: translateX(calc(var(--fan) * 62%)) rotate(calc(var(--fan) * 8deg)) translateY(calc(var(--fan) * 30px)) scale(0.86);
  }

  .fan-left figcaption,
  .fan-right figcaption {
    display: none;
  }
}

@media (max-width: 319px) {
  .topbar-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar {
    height: 60px;
  }

  .hero {
    min-height: 560px;
  }

  .obj-1 { --size: 132px; left: -6%; bottom: 13%; }
  .obj-2 { --size: 92px; left: 6%; top: 16%; }
  .obj-3 { --size: 118px; right: -6%; bottom: 19%; }
  .obj-4 { --size: 84px; right: 8%; top: 14%; }
  .obj-5 { --size: 96px; left: 22%; bottom: 2%; }
  .obj-6 { --size: 84px; right: 22%; bottom: 4%; }

  .obj-float {
    --size: 84px;
  }

  .obj-l2,
  .obj-r2 {
    --size: 100px;
  }

  .pill-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .pill-track::-webkit-scrollbar {
    display: none;
  }

  .feature-pill {
    flex: none;
    scroll-snap-align: center;
  }

  .fan {
    height: 460px;
  }

  .fan-phone {
    width: 180px;
  }

  .privacy-card {
    padding: 24px 22px 26px;
  }

  .faq-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .finale-scene .obj {
    --size: 128px;
    bottom: -36px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }

  body,
  .automation,
  .automation-backdrop {
    transition: none;
  }

  .hero-frame,
  .phone {
    transform: none;
  }

  .obj,
  .obj-float,
  .finale-scene .obj {
    transform: rotate(var(--rot, 0deg));
    transition: none;
  }

  .stage-glow {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  .fan {
    --fan: 1 !important;
  }

  .fan-phone {
    transition: none;
  }

  .screen {
    transform: none;
    transition: opacity 0.2s linear;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
