.hero {
  background-image: url("assets/notive-hero-workflow-route-v3.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.22) 52%, rgba(255,255,255,0) 100%);
  content: "";
  pointer-events: none;
}

.hero .scene-content,
.hero .scroll-next {
  z-index: 1;
}

.hero .scene-content {
  margin-top: -10px;
}

@media (max-width: 860px) {
  .hero { background-position: 56% bottom; background-size: auto 100%; }
  .hero .scene-content { margin-top: -10px; }
}

/* Landing refinement: textless scroll cues, actual-product iconography, and an exposed UnID flow. */
.hero .overline .violet { color: inherit; }

.scene .scroll-next {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  font-size: 0 !important;
  color: transparent !important;
  touch-action: manipulation;
}

.scene .scroll-next b { display: none; }

.scroll-next::before,
.scroll-next::after {
  position: absolute;
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: #9aa7ad;
  content: "";
  animation: notive-scroll-cue 1.45s ease-in-out infinite;
}

.scroll-next::before { transform: translateX(-9px) rotate(24deg); }
.scroll-next::after { transform: translateX(9px) rotate(-24deg); }
.scroll-next:hover::before,
.scroll-next:hover::after { background: #607077; }

.studio .studio-bar { color: var(--violet); font-weight: 700; }
.studio .overline > svg { display: none; }
.studio .overline::before {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: #f4f0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3L12 3Z'/%3E%3Cpath d='M5 3v4M3 5h4'/%3E%3C/svg%3E") center/17px no-repeat;
  content: "";
}

.scene.unid { overflow: visible; }
.unid .note { position: relative; overflow: visible; }
.unid .note-body { padding-bottom: 14px; }
.unid .unid-mark { gap: 5px; font-size: 0; }
.unid .unid-mark::before {
  display: block;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.7-8 10-4.6-1.3-8-5-8-10V6l8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
  content: "";
}
.unid .unid-mark::after { content: "UnID"; font-size: 13px; }
.unid .steps { position: absolute; z-index: 1; right: -38px; bottom: -96px; left: 46px; margin: 0; }
.unid .step { border-color: transparent; box-shadow: 0 10px 23px rgba(15,38,31,.15); }
.unid .scroll-next::before,
.unid .scroll-next::after { background: #c4d8d1; }

#unid-dialog .typing,
#unid-dialog .detect,
#unid-dialog .flow-status { display: none; }
#unid-dialog .unid-flow { position: relative; }
#unid-dialog .type-note { position: relative; font-size: 0; }
#unid-dialog .type-note::before {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  color: #3f504a;
  font-size: 16px;
  line-height: 2;
  white-space: nowrap;
  animation: notive-demo-reveal .32s steps(3,end) forwards;
  content: "오늘 ";
}
#unid-dialog .type-note::after {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  padding: 2px 0;
  border-radius: 3px;
  background: #dff4ed;
  color: #0c6a5f;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  white-space: nowrap;
  animation: notive-name-reveal .28s ease .32s forwards;
  content: "김하늘";
}
#unid-dialog .unid-flow::after {
  position: absolute;
  top: 44px;
  left: 108px;
  right: 44px;
  color: #3f504a;
  font-size: 16px;
  line-height: 2;
  animation: notive-tail-in .45s ease .6s both;
  content: "님은 면접 이후 수면이 불규칙해졌고, 보호자 김민정 님도 걱정하고 있습니다.";
}

@keyframes notive-scroll-cue {
  50% { margin-top: 6px; opacity: .48; }
}

@keyframes notive-demo-reveal { to { max-width: 3ch; } }
@keyframes notive-name-reveal { to { max-width: 4ch; padding: 2px 5px; } }
@keyframes notive-tail-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 580px) {
  .unid .steps { right: -10px; left: 12px; }
  #unid-dialog .unid-flow::after { left: 100px; right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-next::before,
  .scroll-next::after,
  #unid-dialog .type-note::before,
  #unid-dialog .type-note::after,
  #unid-dialog .unid-flow::after { animation: none; opacity: 1; transform: none; }
  #unid-dialog .type-note::before { max-width: 3ch; }
  #unid-dialog .type-note::after { max-width: 4ch; padding: 2px 5px; }
}

/* Lucide icon geometry and final landing spacing. */
.hero .scene-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  margin: 0;
  transform: translate(-50%, -50%) translateY(-26px);
}

.motion .hero .scene-content.active { transform: translate(-50%, -50%) translateY(-26px); }

/* Hero copy sits just above the true visual centre; tighter word spacing avoids a detached AI label. */
.hero .scene-content,
.motion .hero .scene-content.active { transform: translate(-50%, -50%) translateY(-55px); }
.hero .overline { gap: 3px; letter-spacing: -.025em; }

.beta-brand {
  color: var(--teal);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: -.055em;
}

/* Match the date's trailing space to the audience column's 28px inset. */
.beta .beta-strip { grid-template-columns: 200px minmax(0, 1fr); }
.beta .beta-date { padding-right: 28px; }

.partner-benefits {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.partner-benefits b {
  color: var(--ink);
  font-size: 13px;
}

.partner-benefits ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  list-style: none;
}

.partner-benefits li::before {
  margin-right: 8px;
  color: var(--teal);
  content: "•";
}

.partner-benefits strong {
  color: var(--ink);
  font-weight: 700;
}

/* Native select arrows ignore padding. Replace it with one intentional, inset chevron. */
.form .field select {
  appearance: none;
  padding-right: 48px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317201e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 17px center;
  background-repeat: no-repeat;
  background-size: 17px;
}

#policy-dialog .contact-form input,
#policy-dialog .contact-form textarea {
  font-size: 16px;
  line-height: 1.6;
}

.scene .scroll-next {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/30px no-repeat;
  animation: notive-lucide-chevron 1.35s ease-in-out infinite;
  transform: translateX(-50%);
}

.scroll-next::before,
.scroll-next::after { display: none; }

.unid .scroll-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4d8d1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.studio .overline::before {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M3 5h4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.unid .steps {
  top: 222px;
  right: -28px;
  bottom: auto;
  left: 20px;
  display: grid;
  gap: 10px;
}

.unid .step {
  display: flex;
  width: calc(100% - 32px);
  min-height: 66px;
  align-items: center;
  margin: 0 !important;
  padding: 15px 17px;
}

body .unid .steps .step:nth-child(1) { margin-right: 32px !important; background: #f8fbfa; color: #52635d; }
body .unid .steps .step:nth-child(2) { margin-left: 16px !important; background: #e7f6ef; color: #226c5f; }
body .unid .steps .step:nth-child(3) { margin-left: 32px !important; background: #cdeedf; color: #0a6358; }

#unid-dialog .type-note::before,
#unid-dialog .type-note::after,
#unid-dialog .unid-flow::after { content: none; animation: none; }
#unid-dialog .type-note { min-height: 185px; font-size: 16px; }
#unid-dialog .typing { display: inline; }

.unid-demo-sensitive {
  border-radius: 3px;
  background: #dff4ed;
  color: #0c6a5f;
  font-weight: 700;
  animation: notive-sensitive-in .22s ease both;
}

body .footer { min-height: 220px; padding: 52px 0; }
body .footer strong span { color: #fff; }

@keyframes notive-lucide-chevron {
  50% { transform: translate(-50%, 6px); opacity: .48; }
}

@keyframes notive-sensitive-in {
  from { background: transparent; color: inherit; }
  to { background: #dff4ed; color: #0c6a5f; }
}

@media (max-width: 580px) {
  .hero .scene-content { width: calc(100% - 32px); }
  .unid .steps { top: 238px; right: -12px; left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene .scroll-next,
  .unid-demo-sensitive { animation: none; }
}

/* Content refinements driven by the beta operating plan. */
.nav.invert .brand,
.nav.invert nav { color: #fff; }

.unid .note-body p { max-width: none; }
body .unid .steps .step:nth-child(1) { background: #dceee7; color: #285d52; }

#unid-dialog .type-note { min-height: 128px; }

.beta-date .beta-range {
  display: block;
  font-size: 34px;
  letter-spacing: -.055em;
  line-height: 1.15;
  white-space: nowrap;
}

.legal-copy {
  max-height: min(56vh, 500px);
  overflow: auto;
  padding-right: 12px;
}

.legal-copy h3 {
  margin: 22px 0 7px;
  font-size: 15px;
}

.legal-copy p,
.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: #f5f8f6;
  color: var(--ink);
  outline: 0;
}

#policy-dialog .contact-form input {
  background: #f5f8f6;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.contact-cancel {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d6e3dd;
  border-radius: 6px;
  background: #fff;
  color: #52615c;
  font-size: 14px;
  font-weight: 700;
}

.contact-note { margin-top: 14px; }

.contact-status { min-height: 20px; margin: 14px 0 0; color: var(--teal); font-size: 13px; line-height: 1.55; }
.contact-status.error { color: #b42318; }
.result.error { color: #b42318; }
.contact-form .button[disabled] { cursor: wait; opacity: .62; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The landing copy enters once as a single, calm focal group. */
.motion .hero .scene-content {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-37px);
  transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1);
}

.motion .hero.is-seen .scene-content {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-55px);
}

.motion .studio .studio-demo {
  clip-path: inset(0 0 100% 0 round var(--r));
  opacity: .8;
  transform: translateY(24px);
  transition: clip-path .78s cubic-bezier(.16,1,.3,1), opacity .42s ease, transform .78s cubic-bezier(.16,1,.3,1);
}

.motion .studio .studio-welcome,
.motion .studio .composer {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .48s cubic-bezier(.16,1,.3,1);
}

.motion .studio.is-seen .studio-demo { clip-path: inset(0 0 0 0 round var(--r)); opacity: 1; transform: none; }
.motion .studio.is-seen .studio-welcome { opacity: 1; transform: none; transition-delay: .44s; }
.motion .studio.is-seen .composer { opacity: 1; transform: none; transition-delay: .58s; }

.motion .unid .note {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .56s ease, transform .68s cubic-bezier(.16,1,.3,1);
}

.motion .unid .note-body h3,
.motion .unid .note-body > p,
.motion .unid .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .38s ease, transform .46s cubic-bezier(.16,1,.3,1);
}

.motion .unid.is-seen .note,
.motion .unid.is-seen .note-body h3,
.motion .unid.is-seen .note-body > p,
.motion .unid.is-seen .step { opacity: 1; transform: none; }
.motion .unid.is-seen .note-body h3 { transition-delay: .28s; }
.motion .unid.is-seen .note-body > p { transition-delay: .38s; }
.motion .unid.is-seen .step:nth-child(1) { transition-delay: .54s; }
.motion .unid.is-seen .step:nth-child(2) { transition-delay: .65s; }
.motion .unid.is-seen .step:nth-child(3) { transition-delay: .76s; }

.motion .beta .beta-strip,
.motion .beta .form {
  opacity: 0;
  transition: opacity .48s ease, transform .58s cubic-bezier(.16,1,.3,1);
}
.motion .beta .beta-strip { transform: translateX(-22px); }
.motion .beta .form { transform: translateX(22px); }
.motion .beta.is-seen .beta-strip,
.motion .beta.is-seen .form { opacity: 1; transform: none; }
.motion .beta.is-seen .form { transition-delay: .14s; }

@media (max-width: 580px) {
  .beta-date .beta-range { font-size: 30px; }
  .beta .beta-strip { grid-template-columns: 1fr; }
  .partner-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion .hero .scene-content,
  .motion .studio .studio-demo,
  .motion .studio .studio-welcome,
  .motion .studio .composer,
  .motion .unid .note,
  .motion .unid .note-body h3,
  .motion .unid .note-body > p,
  .motion .unid .step,
  .motion .beta .beta-strip,
  .motion .beta .form {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
