.hm #hero { display:grid; place-items:center; min-height:clamp(550px,82svh,820px); padding:104px 24px 64px; }
.hm .hero__t { position:relative; z-index:1; }
.library-search { display:flex; align-items:center; width:min(460px,100%); margin:24px auto 16px; background:white; border:1px solid #ccc; border-radius:32px; padding:8px 8px 8px 16px; }
.library-search input { flex:1; min-width:0; border:0; background:transparent; font:inherit; color:#171717; }
.library-search button { background:#161616; border:0; color:white; border-radius:50%; width:38px; height:38px; cursor:pointer; font-size:20px; }
.hm .demo { padding-top:var(--gap-sec); text-align:center; }
.demo .stage { margin-top:32px; }
.hm .awards-show { position:relative; isolation:isolate; overflow:hidden; background:#101010; color:white; min-height:clamp(400px,48vw,720px); display:grid; place-items:center; border-radius:20px; margin-top:var(--gap-sec); }
.awards-copy { position:relative; text-align:center; padding:24px; }
.awards-copy h2, .awards-copy p { font-size:var(--type-24-24-48, 48px); font-weight:500; line-height:1.04; letter-spacing:-.055em; }
.awards-copy div { margin-top:24px; display:flex; justify-content:center; align-items:center; gap:16px; }
.awards-copy a { color:white; font-size:16px; }
.awards-copy a:first-child { padding:16px 16px; background:#7244c6; border-radius:28px; }
.hm #tools .tgrid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:740px) {
  .hm #tools .tgrid { grid-template-columns:1fr; }
  .hm .hero__acts { align-items:center; }
  .hm #hero .btn { width:auto; }
}
.hm #tools .tgrid { grid-template-rows:auto; }
.hm #tools .tc { grid-row:auto; grid-column:auto; }
.hm #tools .tc__m { aspect-ratio:auto; min-height:0; flex:1; }

/* Homepage palette, sampled from Krea 3's navigation, contents and footer. */
#ud-home {
  color-scheme:light;
  --paper:#fff; --bg:var(--paper); --raised:var(--paper);
  --tint:#f5f5f5; --surface:var(--tint); --warm:var(--tint);
  --hair:#e5e5e5; --stroke-primary:var(--hair); --stroke-secondary:var(--hair);
  --ink:#000; --text-primary:var(--ink);
  --ink-2:#737373; --ink-3:var(--ink-2); --mute:var(--ink-2);
  --text-secondary:var(--ink-2); --text-tertiary:var(--ink-2);
  --accent:var(--ink); --accent-ink:var(--ink); --accent-fill:var(--ink);
  --on-accent:var(--paper); --violet:var(--ink); --violet-soft:var(--tint);
  --stripes-glow:none;
  color:var(--ink); background:var(--paper);
}
#ud-home::before, #ud-home #hero, #ud-home .ft3 { background:var(--paper); }
#ud-home .hero__h, #ud-home .hero__h .w > span, #ud-home .end__h .w > span {
  color:var(--ink); -webkit-text-fill-color:currentColor; background:none; text-shadow:none;
}
#ud-home :is(.hero__h,.end,.plan--pro,.mcp)::after,
#ud-home :is(.btn__border,.wbtn__shine,.plate__glow,.plan__stars,.mcp__stars) { display:none; }
#ud-home :is(.ftc__v,.bn,.plate,.tc,.plan,.mcp,.q,.awards-show) {
  background:var(--tint); color:var(--ink); border-color:var(--hair);
  box-shadow:inset 0 0 0 1px var(--hair) !important;
}
#ud-home .plan--pro { --text-secondary:var(--ink-2); --text-tertiary:var(--ink-2); }
#ud-home :is(.mcp__h,.bn__h,.plan__price,.plan__name,.awards-copy,.awards-copy a) { color:var(--ink); text-shadow:none; }
#ud-home :is(.bn__p,.mcp__p,.lead,.plan__bill,.plan__fine,.ft3__col a) { color:var(--ink-2); }
#ud-home :is(.btn--glass,.pill,.otp__chips a,.plan__tag,.lbc__tier,.library-search,.logos li) {
  background:var(--paper); color:var(--ink); border-color:var(--hair); box-shadow:inset 0 0 0 1px var(--hair);
}
#ud-home :is(.otp__chips a,.lbc__tier,.plan__tag) { background:var(--tint); }
#ud-home :is(.wbtn,.btn--primary,.hg--mcp,.sheet__mcp,.plan__stick,.library-search button,.awards-copy a:first-child) {
  color:var(--paper); background:var(--ink); box-shadow:none;
}
#ud-home :is(.wbtn,.btn--primary,.hg--mcp,.library-search button,.awards-copy a:first-child):hover { background:#252525; }
#ud-home :is(.btn--glass,.pill,.otp__chips a):hover { background:var(--hair); }
#ud-home :focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
#ud-home .library-search input { color:var(--ink); }
#ud-home .library-search input::placeholder { color:var(--ink-2); }
#ud-home .plan--pro .plan__list li::before { background-color:var(--ink); }
#ud-home #mcp {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: round(nearest, clamp(24px, 4vw, 64px), 8px);
  padding: round(nearest, clamp(24px, 4vw, 64px), 8px);
  background: #f6f5fb;
}
#mcp .mcp__t { max-width: 520px; }
.mcp-previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.mcp-preview { position: relative; aspect-ratio: 16 / 10; }
.mcp-preview img, .mcp-preview video {
  display: block; width: 100%; height: 100%; object-fit: contain;
  border-radius: 6px; background: #17151b;
}
.mcp-preview video { position: absolute; inset: 0; opacity: 0; }
.mcp-preview.is-playing video { opacity: 1; }
@media (max-width: 800px) {
  #ud-home #mcp { grid-template-columns: 1fr; }
  .mcp-previews { gap: 8px; }
}

@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal-regular.woff2?v=a449bfa0") format("woff2"), url("/fonts/neue-montreal-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

#ud-home {
  --font-sans: "Neue Montreal", Arial, sans-serif;
  --heading-size: 48px;
  --heading-leading: 52px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.03em;
}

#ud-home :is(h1, h2, .end__h, .awards-copy > p) {
  font: 400 var(--heading-size)/var(--heading-leading) var(--font-sans);
  letter-spacing: -.03em;
}

#ud-home :is(h3, .lead, .sub, .btn, button, input) {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -.03em;
}

#ud-home :is(.btn, .library-search input) {
  font-size: 16px;
}

@media (max-width: 899px) {
  #ud-home {
    --heading-size: 40px;
    --heading-leading: 40px;
  }
}

@media (max-width: 480px) {
  #ud-home {
    --heading-size: 32px;
    --heading-leading: 36px;
  }
}

@font-face {
  font-family: Magashine;
  src: url("/fonts/magashine.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

#ud-home, #ud-home :is(.btn, .pill, .library-search input, .sub, .lead, .plate__p, .bn__p, .mcp__p) {
  font-size: 16px;
}

#ud-home #hero {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding: 64px 0;
  background: radial-gradient(circle, #dedbd8 .65px, transparent .9px) center / 24px 24px, #fff;
}
#ud-home .hero__t { width: min(100%, 550px); box-sizing: border-box; }
#ud-home .hero__l2 { font-family: Magashine, Georgia, serif; }
#ud-home #cta-main { min-height: 44px; padding: 8px 24px; font-size: 16px; }
#ud-home #hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(80px, 20%, 220px);
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 1;
}
.template-flight {
  translate: var(--shift-x, 0px) var(--shift-y, 0px);
  transition: translate 400ms ease-out;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 32% 30% at center, transparent 48%, black 100%);
}
.template-flight video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(175px, 20vw, 385px);
  aspect-ratio: 1440 / 800;
  object-fit: contain;
  border-radius: 4px;
  animation: template-flight 24s cubic-bezier(.45,.1,.8,.55) var(--delay) infinite both;
  animation-play-state: paused;
}
.template-flight.running video { animation-play-state: running; }
@keyframes template-flight {
  0% {
    transform: translate(-50%,-50%) translate(calc(var(--dx) * 14vw), calc(var(--dy) * 12svh)) scale(.17);
    opacity: 0;
  }
  30% { opacity: .25; }
  82% { opacity: 1; }
  100% {
    transform: translate(-50%,-50%) translate(calc(var(--dx) * 84vw), calc(var(--dy) * 90svh)) scale(1.45);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .template-flight { mask-image: radial-gradient(ellipse 67% 33% at center, transparent 48%, black 100%); }
  .template-flight video:nth-child(n+17) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .template-flight.running video { animation-play-state: paused; }
}

#product-demo, #proof, #where, #tools, #pricing, #faq {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}
#product-demo .stage { padding-inline: 0; }
@media (max-width: 699px) {
  #product-demo, #proof, #where, #tools, #pricing, #faq { width: calc(100% - 32px); }
}

#features {
  --feature-edge: 16px;
  --feature-width: 80%;
  max-width: none;
  padding: 64px var(--feature-edge) 0;
}
#features .feat__row {
  display: flex;
  gap: 24px;
  margin: 32px calc(-1 * var(--feature-edge)) 0;
  padding-inline: var(--feature-edge);
  overflow-x: auto;
  scroll-padding-inline: var(--feature-edge);
  scrollbar-width: none;
}
#features .ftc { flex: 0 0 var(--feature-width); min-width: 0; }
#features .ftc__v { width: 100%; height: auto; aspect-ratio: 1; }
#features .ftc h3 { margin-top: 24px; font-size: 20px; }

@media (min-width: 768px) {
  #features { --feature-edge: 32px; --feature-width: 40%; padding-top: 128px; }
}
@media (min-width: 1024px) {
  #features { --feature-width: min(28.5714286%, 384px); }
}
@media (min-width: 1536px) {
  #features { --feature-width: 20%; }
}

.partner-band {
  color: #424242;
  padding: 40px 24px 48px;
  text-align: center;
}
.partner-strip, .partner-strip ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}
.partner-strip { margin-top: 40px; }
.partner-strip ul { flex: 1; padding: 0; margin: 0; list-style: none; }
.partner-strip li { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.partner-strip img { height: 24px; max-width: 90px; object-fit: contain; filter: brightness(0); opacity: .74; }
.partner-strip .yc { height: 19px; }
@media (max-width: 1000px) {
  .partner-strip { display: grid; gap: 32px; }
  .partner-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .partner-strip ul { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

#where .plate { box-sizing: border-box; height: 480px; }

#ud-home main > #brief {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding: 16px 16px 0;
}
.product-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  gap: 24px;
  padding: round(nearest, clamp(32px,10.67vh,96px), 8px) round(nearest, clamp(24px,3.89vw,56px), 8px) round(nearest, clamp(24px,6.22vh,56px), 8px);
  background: #f5f5f5;
  border-radius: 24px;
  text-align: center;
}
.product-panel--studio {
  background: #f5f5f7;
  padding-block: round(nearest, clamp(24px,6.22vh,56px), 8px) round(nearest, clamp(32px,10.67vh,96px), 8px);
}
.product-pair__preview { display:block; width:100%; min-height:0; height:auto; max-height:54%; object-fit:contain; }
#ud-home .product-pair__copy h2 { font-size:40px; line-height:1.1; }
.product-pair__copy p { margin:16px auto 0; max-width:32ch; font-size:20px; line-height:1.2; color:#676767; }
.product-pair__actions { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:24px; }
@media(max-width:740px) {
  #ud-home main > #brief { height:auto; min-height:100svh; grid-template-columns:1fr; padding:16px; gap:16px; }
  .product-panel { min-height: min(80svh,640px); padding:32px 24px; justify-content:space-around; }
  #ud-home .product-pair__copy h2 { font-size:32px; }
}
@media(min-width:741px) and (max-height:510px) {
  #ud-home main > #brief { min-height: 460px; }
  .product-panel { padding-block:16px; }
}

#ud-home main > #brief + #awards {
  width: calc(100% - 32px);
  max-width: none;
  margin: 16px auto;
  height: calc(100svh - 32px);
  min-height: 440px;
  padding: 0;
  background: #000;
  border-radius: 24px;
}
.awards-ring { position:absolute; inset:0; margin:auto; width:78%; height:77%; object-fit:contain; pointer-events:none; }
#ud-home #awards .awards-copy { color:white; }
#ud-home #awards .awards-copy :is(h2,p) { font-size:40px; line-height:1.1; font-weight:400; letter-spacing:-.03em; }
#awards .awards-copy a:last-child { --action-ink:white; }
#ud-home #tools .tc { height:560px; box-sizing:border-box; }
@media(max-width:740px) {
  #ud-home main > #brief + #awards { width:calc(100% - 24px); margin-top:0; }
  .awards-ring { width:170%; max-width:none; left:-35%; height:95%; }
  #ud-home #awards .awards-copy :is(h2,p) { font-size:24px; }
  #awards .awards-copy { padding:8px; background:#000; border-radius:12px; }
  #awards .awards-copy div { flex-wrap:wrap; gap:8px; }
}

/* Homepage section index */
#ud-home .otp { max-width: 1200px; margin-inline: auto; }
#ud-home .otp > p { font-size: 16px; margin-bottom: 16px; }
#ud-home .otp__chips { max-width: 680px; gap: 8px; }
#ud-home .otp__chips a { height: 40px; padding-inline: 16px; border-radius: 999px; font-size: 16px; }
#ud-home .otp__chips a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.otp__logo { display: block; width: 100%; height: auto; margin: round(nearest, clamp(48px, 8vw, 112px), 8px) auto 0; color: var(--ink); }
.otp__logo text { fill: #dedbd6; font: inherit; font-size: 144px; letter-spacing: -.045em; }
